Re: [whatwg/dom] document.createEvent() should maybe not be conditional upon exposure (#952)

@zcorpan shared:
> I ran a query on the 10k sample mobile pages in httparchive for pages containing "window.TouchEvent". There were 163 matches. I haven't looked at them, but you could look for evidence that there are web pages that would break in desktop Safari (or macOS Firefox) before trying to ship the suggested change.
https://docs.google.com/spreadsheets/d/1G3qs7i6V2E5NWVPHZY5E1GAHFYwo1frDxoLhqaYIQrU/edit#gid=752407919


Created a copy of this worksheet to expand on it. Using an extension to modify and intercept calls done to `window.TouchEvent`, found that at least one of the sites in the list was affected. It displayed a difference in the layout when `window.TouchEvent` was nullified. This can be viewed at https://docs.google.com/spreadsheets/d/1VQW1ZFP-FEsGoSpEfy6VpThsqKBuksJZ3bnYlDOZXjg/edit?usp=sharing. 

Additional notes also detail the supposed use with which checking for `window.TouchEvent`, may be trying to perform.

The original list hasn’t been exhausted as yet.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/952#issuecomment-1180488560

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/952/1180488560@github.com>

Received on Monday, 11 July 2022 14:34:40 UTC