Bug 126223

Summary: PreventDefault in 'mousedown' cancels 'mousemove', 'mouseup' and 'mouseout' events outside of iframe.
Product: WebKit Reporter: Vsevolod <v.shmyroff>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://vsesh.ru/iframe/iframe2.html
Attachments:
Description Flags
Testcase
none
Additional testcase content none

Vsevolod
Reported 2013-12-25 00:23:44 PST
PreventDefault in 'mousedown' cancels 'mousemove', 'mouseup' and 'mouseout' events outside of iframe. Witout preventDefault all works fine.
Attachments
Testcase (154 bytes, text/html)
2015-03-19 05:12 PDT, Antoine Quint
no flags
Additional testcase content (981 bytes, text/html)
2015-03-19 05:12 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2015-03-19 05:11:45 PDT
I just ran into this issue today, where this works fine in Firefox, but fails in Safari and Chrome. Since the original URL no longer seems to work, I've attached a testcase where commenting out the call to `event.preventDefault()` in the `mousedown` event handler shows that mouse events are dispatched even when outside the iframe bounds.
Antoine Quint
Comment 2 2015-03-19 05:12:26 PDT
Created attachment 249033 [details] Testcase
Antoine Quint
Comment 3 2015-03-19 05:12:44 PDT
Created attachment 249034 [details] Additional testcase content
Antoine Quint
Comment 4 2015-03-19 05:26:29 PDT
David Kilzer (:ddkilzer)
Comment 5 2016-09-09 09:45:24 PDT
Lucas Forschler
Comment 6 2019-02-06 09:18:35 PST
Mass move bugs into the DOM component.
Note You need to log in before you can comment on or make changes to this bug.