Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: be69dfc41b15a81b2533bfa2f1c6be8b9b139901
https://github.com/WebKit/WebKit/commit/be69dfc41b15a81b2533bfa2f1c6be8b9b139901
Author: Qianlang Chen <[email protected]>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M Source/WebInspectorUI/UserInterface/Protocol/DebuggerObserver.js
Log Message:
-----------
Web Inspector: REGRESSION(317891@main) Sources shows no scripts when
inspecting an older remote target
rdar://187134944
https://bugs.webkit.org/show_bug.cgi?id=325701
Reviewed by Patrick Angle.
When a remote target runs an older OS, Web Inspector loads a versioned
protocol for it from Protocol/Legacy/. None of these define the
Debugger.ScriptType enum, which was added together with the scriptType
parameter of Debugger.scriptParsed. DebuggerObserver's compatibility
code, which converts the older module parameter into a scriptType, read
its values from InspectorBackend.Enum.Debugger.ScriptType, so it threw
a TypeError for every script.
Use WI.Script.SourceType instead. It has the same values as the
protocol enum, and it does not depend on which protocol version is
loaded.
* Source/WebInspectorUI/UserInterface/Protocol/DebuggerObserver.js:
(WI.DebuggerObserver.prototype.scriptParsed):
Canonical link: https://commits.webkit.org/322286@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications