RESOLVED FIXED 33894
Touch Events are not sent to iframes
https://bugs.webkit.org/show_bug.cgi?id=33894
Summary Touch Events are not sent to iframes
Ben Murdoch
Reported 2010-01-20 04:18:54 PST
Touch events dispatched from the platform layer are sent to the main frame's event handler. However if the main frame does not use touch events but an embedded iframe does, the event is not propagated to the iframe. This is because we bail out early in EventHandler::handleTouchEvent if the frame's document has not registered for touch events. As it is the document inside the iframe and not the document on the main frame that has registered for the events, we bail out. We should instead check if the document that the target element belongs to has registered for touch events after the hit detection has taken place, as the hit detection descends into iframes. Patch and test case to follow.
Attachments
Proposed patch and test case. (5.61 KB, patch)
2010-01-20 06:01 PST, Ben Murdoch
no flags
Ben Murdoch
Comment 1 2010-01-20 06:01:33 PST
Created attachment 47014 [details] Proposed patch and test case.
WebKit Commit Bot
Comment 2 2010-01-20 20:23:17 PST
Comment on attachment 47014 [details] Proposed patch and test case. Clearing flags on attachment: 47014 Committed r53597: <http://trac.webkit.org/changeset/53597>
WebKit Commit Bot
Comment 3 2010-01-20 20:23:22 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.