REGRESSION (r181358 and r181507): Lots of sites think that we support touch events...
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Mar 2015 01:02:38 +0000 (01:02 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Mar 2015 01:02:38 +0000 (01:02 +0000)
commit7fc8e39b0382e818098a197493a33f0444230aef
treeac5484bd77338f930b762d3785ec01c4d0156e3e
parent3defb87c90d600653115470419e2765157c31e3a
REGRESSION (r181358 and r181507): Lots of sites think that we support touch events on OS X
https://bugs.webkit.org/show_bug.cgi?id=142888
<rdar://problem/20227304>

Reviewed by Beth Dakin.

* dom/Document.idl:
* dom/Element.idl:
* html/HTMLBodyElement.idl:
* html/HTMLFrameSetElement.idl:
* page/DOMWindow.idl:
Re-conditionalize a lot of event listeners; sites test ("ontouchstart" in window), which
is not covered by NotEnumerable, and so r181358 and r181507 broke a bunch of sites
(apple.com, blaze.com, anything using nicescroll.js, etc.) by causing them to think
that (Mac) Safari was touch-enabled.

* fast/dom/event-handler-attributes-expected.txt:
* fast/dom/event-handler-attributes.html:
* fast/events/event-attribute-expected.txt:
* platform/win/fast/events/event-attribute-expected.txt:
Revert some changes to these tests and their results.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/event-handler-attributes-expected.txt
LayoutTests/fast/dom/event-handler-attributes.html
LayoutTests/fast/events/event-attribute-expected.txt
LayoutTests/platform/win/fast/events/event-attribute-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.idl
Source/WebCore/dom/Element.idl
Source/WebCore/html/HTMLBodyElement.idl
Source/WebCore/html/HTMLFrameSetElement.idl
Source/WebCore/page/DOMWindow.idl