Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8b12e6d64336315ee3176f59a903caf938324ad9
https://github.com/WebKit/WebKit/commit/8b12e6d64336315ee3176f59a903caf938324ad9
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-18 (Sat, 18 Jul 2026)
Changed paths:
M Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js
Log Message:
-----------
Web Inspector: Uncaught Exception: TypeError: null is not an object
(evaluating 'this.target.RuntimeAgent')
https://bugs.webkit.org/show_bug.cgi?id=218258
rdar://70736409
Reviewed by Devin Rousso.
SourceCodeTextEditor.prototype.willDismissPopover always released the
"popover" RuntimeAgent object group on `this.target`, but the object
group is actually created using
`WI.debuggerManager.activeCallFrame.target` when paused (see
_tokenTrackingControllerHighlightedJavaScriptExpression). Editing the
Inspector Bootstrap Script exposed the mismatch: it is a WI.LocalScript
with a null target, so `this.target` was null and dereferencing
`.RuntimeAgent` threw.
Resolve the target in willDismissPopover the same way it is resolved
when the object group is created, and skip releasing it if no target
is available.
* Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js:
(WI.SourceCodeTextEditor.prototype.willDismissPopover):
Canonical link: https://commits.webkit.org/317478@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications