RESOLVED FIXED Bug 240769
WebInspector: Regression(r292754) Uncaught Exception: TypeError: undefined is not an object (evaluating 'this.ownerDocument.documentURL')
https://bugs.webkit.org/show_bug.cgi?id=240769
Summary WebInspector: Regression(r292754) Uncaught Exception: TypeError: undefined is...
Patrick Angle
Reported 2022-05-21 21:03:45 PDT
Uncaught Exception in Web Inspector. Seems like I missed updating the ownerDocument somewhere :/ Steps to Reproduce: 1. Inspect https://patrickangle-static.s3.amazonaws.com/demos/grids/index.html 2. Reload (from origin seems more reliable repro?) Uncaught Exceptions: ----------------------- - TypeError: undefined is not an object (evaluating 'this.ownerDocument.documentURL') (at DOMNode.js:1257:37) _createLayoutOverlayColorSettingIfNeeded @ DOMNode.js:1257:37 layoutOverlayColor @ DOMNode.js:706:54 layout @ NodeOverlayListSection.js:124:81 _layoutSubtree @ View.js:308:20 _layoutSubtree @ View.js:319:32 _visitViewTreeForLayout @ View.js:378:36 ----------------------- Notes: Inspected URL: https://patrickangle-static.s3.amazonaws.com/demos/grids/index.html Loading completed: true Frontend User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
Attachments
Radar WebKit Bug Importer
Comment 1 2022-05-21 21:04:06 PDT
Patrick Angle
Comment 2 2022-05-21 23:11:53 PDT
The frontend representation of the DOM tree does not match the backend representation. I suspect this is not the only bad thing happening as a result. Preparing a revert for the caused-by and its followup since the changes were relatively self-contained and the bug they were fixing is less awful than the new results (console inspection of nodes that are detached and reattached without getting the node from the page again).
Patrick Angle
Comment 3 2022-05-21 23:56:15 PDT
EWS
Comment 4 2022-05-22 11:01:45 PDT
Committed r294621 (250847@main): <https://commits.webkit.org/250847@main> Reviewed commits have been landed. Closing PR #890 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.