Bug 84397

Summary: Web Inspector: Enable touch events feature fails touch feature detection
Product: WebKit Reporter: Paul Irish <paulirish>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, ericbidelman, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch pfeldman: review+

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.