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?
Created attachment 139359 [details] Patch
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.
Committed r115569: <http://trac.webkit.org/changeset/115569>