Bug 157369

Summary: event.target shouldn't be retargeted as the event bubbles into a slot
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, esprehn+autocc, kangil.han, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 148695    
Attachments:
Description Flags
Fixes the bug
none
Patch for landing
none
Patch for landing
none
Patch for landing none

Ryosuke Niwa
Reported 2016-05-04 20:22:28 PDT
When an event bubbles up from an assigned node to its assigned slot, we shouldn't be adjusting event.target to point to the slot. Since a shadow tree should have access to nodes outside the shadow tree, event.target should be accessible inside the shadow tree of such a slot.
Attachments
Fixes the bug (28.01 KB, patch)
2016-05-04 21:03 PDT, Ryosuke Niwa
no flags
Patch for landing (27.98 KB, patch)
2016-05-05 09:16 PDT, Ryosuke Niwa
no flags
Patch for landing (28.58 KB, patch)
2016-05-05 09:42 PDT, Ryosuke Niwa
no flags
Patch for landing (28.58 KB, patch)
2016-05-05 10:05 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2016-05-04 21:03:02 PDT
Created attachment 278154 [details] Fixes the bug
Antti Koivisto
Comment 2 2016-05-05 05:32:27 PDT
Comment on attachment 278154 [details] Fixes the bug r=me, nice that this behavior change simplifies the logic.
Antti Koivisto
Comment 3 2016-05-05 05:33:28 PDT
Please fix build with shadow DOM disabled before landing.
Ryosuke Niwa
Comment 4 2016-05-05 09:16:18 PDT
Created attachment 278167 [details] Patch for landing
Ryosuke Niwa
Comment 5 2016-05-05 09:16:38 PDT
Comment on attachment 278167 [details] Patch for landing Wait for EWS.
Ryosuke Niwa
Comment 6 2016-05-05 09:42:17 PDT
Created attachment 278169 [details] Patch for landing
Ryosuke Niwa
Comment 7 2016-05-05 10:05:47 PDT
Created attachment 278172 [details] Patch for landing
WebKit Commit Bot
Comment 8 2016-05-05 11:32:38 PDT
Comment on attachment 278172 [details] Patch for landing Clearing flags on attachment: 278172 Committed r200464: <http://trac.webkit.org/changeset/200464>
WebKit Commit Bot
Comment 9 2016-05-05 11:32:44 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10 2016-05-05 13:03:12 PDT
Note You need to log in before you can comment on or make changes to this bug.