RESOLVED FIXED 84397
Web Inspector: Enable touch events feature fails touch feature detection
https://bugs.webkit.org/show_bug.cgi?id=84397
Summary Web Inspector: Enable touch events feature fails touch feature detection
Paul Irish
Reported 2012-04-19 16:09:45 PDT
Handling both desktop and touch devices, js app code will often fork the libraries loaded in and behavior wired up depending on if touch events are detected. The most common detect for this is: 'ontouchstart' in window The Emulate Touch Events feature in the Inspector will create touch events, but any code relying on a feature detect will fork in the wrong path. Could the feature also expose touch events like the above in the DOM so the page can fork behavior correctly?
Attachments
Patch (6.03 KB, patch)
2012-04-28 06:23 PDT, Alexander Pavlov (apavlov)
pfeldman: review+
Alexander Pavlov (apavlov)
Comment 1 2012-04-28 06:23:24 PDT
Pavel Feldman
Comment 2 2012-04-28 07:13:31 PDT
Comment on attachment 139359 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=139359&action=review > Source/WebCore/inspector/front-end/DOMAgent.js:1185 > + const functionText = you should declare a function a call toString on it.
Alexander Pavlov (apavlov)
Comment 3 2012-04-28 07:19:52 PDT
Note You need to log in before you can comment on or make changes to this bug.