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

Description Vsevolod 2013-12-25 00:23:44 PST
PreventDefault in 'mousedown' cancels 'mousemove', 'mouseup' and 'mouseout' events outside of iframe. 
Witout preventDefault all works fine.
Comment 1 Antoine Quint 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.
Comment 2 Antoine Quint 2015-03-19 05:12:26 PDT
Created attachment 249033 [details]
Testcase
Comment 3 Antoine Quint 2015-03-19 05:12:44 PDT
Created attachment 249034 [details]
Additional testcase content
Comment 4 Antoine Quint 2015-03-19 05:26:29 PDT
Raised a Chromium bug too at https://code.google.com/p/chromium/issues/detail?id=468730.
Comment 5 David Kilzer (:ddkilzer) 2016-09-09 09:45:24 PDT
<rdar://problem/28226827>
Comment 6 Lucas Forschler 2019-02-06 09:18:35 PST
Mass move bugs into the DOM component.