[Webkit-unassigned] [Bug 106071] New: Existence of window.Touch can break websites mobile device detection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 3 18:22:23 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106071
Summary: Existence of window.Touch can break websites mobile
device detection
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Keywords: WebExposed
Severity: Normal
Priority: P2
Component: Event Handling
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rbyers at chromium.org
CC: abarth at webkit.org
In bug 96295, I added window.Touch and window.TouchList constructors when built with TOUCH_EVENTS. At least one web app uses the existance of window.Touch to infer that they're on a mobile default (and so shouldn't listen to mouse events). This is completely broken and we need to get such sites fixed, but our strategy should be the same as for more common (but equally wrong) check sites do like looking for window.ontouchstart (which, for now, we enable dynamically at runtime - eg. based on whether or not a touch screen is actually present)
For now (Chrome M25) I'm going to revert my change. I'll file a separate bug to put these back but controlled dynamically.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list