Sending multi-touch events to the same Iframe
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2012 00:08:09 +0000 (00:08 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2012 00:08:09 +0000 (00:08 +0000)
commite0a4a867e01f01adaef3edf13fe88ced9448e2ff
treed7d714adb4e7a8059b3772e387ab5232c7046dcb
parent683cc286dcfbbdbd42e558ddb7028825f6c5cbd6
Sending multi-touch events to the same Iframe
https://bugs.webkit.org/show_bug.cgi?id=97973

Patch by Min Qin <qinmin@chromium.org> on 2012-12-10
Reviewed by Dimitri Glazkov.

Source/WebCore:

Multi-Touch in different iframe can give both documents access to each other.
This could cause cross-origin access. To solve this, all the touch events should
be sent to the iframe where the first touchstart happens.

Test: fast/events/touch/multi-touch-inside-iframes.html
      fast/events/touch/multi-touch-inside-nested-iframes.html

* page/EventHandler.cpp:
(WebCore::EventHandler::handleTouchEvent):
* page/EventHandler.h:

LayoutTests:

Check that all multi-touch events are sent to the same iframe.

* fast/events/touch/multi-touch-inside-iframes-expected.txt: Added.
* fast/events/touch/multi-touch-inside-iframes.html: Added.
* fast/events/touch/resources/multi-touch-inside-iframes2.html: Added.
* fast/events/touch/multi-touch-inside-nested-iframes-expected.txt: Added.
* fast/events/touch/multi-touch-inside-nested-iframes.html: Added.
* fast/events/touch/resources/multi-touch-inside-nested-iframes2.html: Added.
* fast/events/touch/resources/multi-touch-inside-nested-iframes3.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/multi-touch-inside-iframes-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/multi-touch-inside-iframes.html [new file with mode: 0644]
LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html [new file with mode: 0644]
LayoutTests/fast/events/touch/resources/multi-touch-inside-iframes2.html [new file with mode: 0644]
LayoutTests/fast/events/touch/resources/multi-touch-inside-nested-iframes2.html [new file with mode: 0644]
LayoutTests/fast/events/touch/resources/multi-touch-inside-nested-iframes3.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.cpp
Source/WebCore/page/EventHandler.h