Web Inspector: Enable touch events feature fails touch feature detection
authorapavlov@chromium.org <apavlov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Apr 2012 14:20:37 +0000 (14:20 +0000)
committerapavlov@chromium.org <apavlov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Apr 2012 14:20:37 +0000 (14:20 +0000)
commitf55c5c7b786ce5ec3a75705b79898b301469f816
tree8e30b6561c46dc308e3fd0f3070a1f9712027ca2
parentb1f63b7303576095a9975086c3387637f6302eff
Web Inspector: Enable touch events feature fails touch feature detection
https://bugs.webkit.org/show_bug.cgi?id=84397

Source/WebCore:

Whenever the touch emulation is enabled, Inspector adds a script to evaluate on load,
that adds ontouch(start|end|move|cancel) properties to window.__proto__ and document.__proto__.

Reviewed by Pavel Feldman.

* inspector/front-end/DOMAgent.js:
(WebInspector.DOMAgent.prototype._emulateTouchEventsChanged.get if):
(WebInspector.DOMAgent.prototype._emulateTouchEventsChanged.scriptAddedCallback):
(WebInspector.DOMAgent.prototype._emulateTouchEventsChanged):
* inspector/front-end/inspector.js:

LayoutTests:

Reviewed by Pavel Feldman.

* fast/events/touch/emulate-touch-events-expected.txt:
* fast/events/touch/emulate-touch-events.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/emulate-touch-events-expected.txt
LayoutTests/fast/events/touch/emulate-touch-events.html
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/DOMAgent.js
Source/WebCore/inspector/front-end/inspector.js