Bug 195730

Summary: Web Inspector: DOM: include window as part of any event listener chain
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, keith_miller, mark.lam, msaboff, rniwa, saam, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 195713    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews107 for mac-highsierra-wk2 none

Devin Rousso
Reported 2019-03-13 19:32:51 PDT
Since window can also intercept/`preventDefault` events, it should be shown as well.
Attachments
Patch (47.78 KB, patch)
2019-03-17 00:44 PDT, Devin Rousso
no flags
Patch (47.81 KB, patch)
2019-03-20 11:34 PDT, Devin Rousso
no flags
Archive of layout-test-results from ews107 for mac-highsierra-wk2 (2.74 MB, application/zip)
2019-03-20 14:24 PDT, EWS Watchlist
no flags
Devin Rousso
Comment 1 2019-03-13 19:39:56 PDT
This should also include setting breakpoints on window event listeners, as well as showing `window` when paused on a window event listener.
Radar WebKit Bug Importer
Comment 2 2019-03-14 23:34:08 PDT
Devin Rousso
Comment 3 2019-03-17 00:44:34 PDT
EWS Watchlist
Comment 4 2019-03-17 00:46:04 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 5 2019-03-20 09:22:38 PDT Comment hidden (obsolete)
Devin Rousso
Comment 6 2019-03-20 11:34:03 PDT
Joseph Pecoraro
Comment 7 2019-03-20 11:49:41 PDT
Comment on attachment 365366 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365366&action=review > Source/JavaScriptCore/inspector/protocol/DOM.json:91 > - { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." }, > + { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "The target <code>DOMNode</code> id if the event listener is for a node." }, > + { "name": "onWindow", "type": "boolean", "optional": true, "description": "True if the event listener was added to the window." }, Should let ITML folks know about these DOM changes as well.
EWS Watchlist
Comment 8 2019-03-20 14:24:05 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 9 2019-03-20 14:24:07 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 10 2019-03-20 14:55:12 PDT
Comment on attachment 365366 [details] Patch Clearing flags on attachment: 365366 Committed r243244: <https://trac.webkit.org/changeset/243244>
WebKit Commit Bot
Comment 11 2019-03-20 14:55:14 PDT
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.