Closed Bug 913177 Opened 11 years ago Closed 11 years ago

Touch Events simulation: ontouchstart are messed up

Categories

(DevTools :: Responsive Design Mode, defect)

26 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 970346

People

(Reporter: magsout, Assigned: paul)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20130905030206

Steps to reproduce:

I tested latest features of devtools  "Simulate touch events". When I used Modernizr to detect touch device, it returned false. 



Expected results:

I think it would be great if return true. I made a little demo using Modernizr http://codepen.io/magsout/full/aqwby
Component: Untriaged → Developer Tools: Responsive Mode
OS: Windows 7 → Mac OS X
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Dev tools - Simulate touch events → Touch Events simulation: window.ontouchstart doesn't exist
Assignee: nobody → paul
window.document.documentElement.ontouchstart is null instead of undefined and is not reset to undefined.

And apparently, dom.w3c_touch_events.enabled is not correctly reset.
Summary: Touch Events simulation: window.ontouchstart doesn't exist → Touch Events simulation: ontouchstart are messed up
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.