RESOLVED FIXED306868
REGRESSION (306223@main): Remote Web Inspector broken
https://bugs.webkit.org/show_bug.cgi?id=306868
Summary REGRESSION (306223@main): Remote Web Inspector broken
Pablo Saavedra
Reported 2026-02-03 06:47:47 PST
... in WPEWebKit , al least, after replacing `getOrInitialize` with `getOrInsert` After the following upstream commit was merged: ``` commit dd0d4ef9add2b1027a94058301a6714dee05c813 Author: Devin Rousso <hi@devinrousso.com> Date: Mon Jan 26 10:48:31 2026 -0800 Web Inspector: remove `Map.prototype.getOrInitialize` in favor of `Map.prototype.getOrInsert` https://bugs.webkit.org/show_bug.cgi?id=306234 ``` the **Remote Web Inspector** no longer works. **Steps to Reproduce:** 1. Build WPE WebKit at or after commit `dd0d4ef9add2b1027a94058301a6714dee05c813`. 2. Launch a WebKit‑based application (e.g. `MiniBrowser` or a remote web process) with the Web Inspector enabled. 3. Connect via the remote inspector 4. Observe that the inspector fails to initialize or crashes. **Observed Result:** Inspector UI does not load. ``` Uncaught TypeError:​ this._contentViewsForTarget.getOrInsert is not a function (at ScriptClusterTimelineView.js:​171:​56)​ ?​ @ TypeError:​ this._contentViewsForTarget.getOrInsert is not a function ?​ @ ScriptClusterTimelineView.js:​171:​56)​ ?​ @ ScriptClusterTimelineView.js:​64:​14)​ ?​ @ ContentView.js:​87:​24)​ ?​ @ TimelineRecordingContentView.js:​685:​60)​ ?​ @ TimelineRecordingContentView.js:​121:​18)​ ?​ @ ContentView.js:​76:​20)​ ?​ @ ContentView.js:​220:​45)​ ?​ @ ContentViewContainer.js:​68:​31)​ ?​ @ ContentBrowser.js:​162:​43)​ ?​ @ TimelineTabContentView.js:​651:​58)​ **Expected Result:** - Remote Web Inspector should load and function normally. **Notes:** - Possible workaround: revert `dd0d4ef9` or manually re‑introduce shim for `Map.prototype.getOrInitialize`.
Attachments
Devin Rousso
Comment 1 2026-02-03 07:22:32 PST
Pablo Saavedra
Comment 2 2026-02-03 09:15:38 PST
EWS
Comment 3 2026-02-03 10:54:10 PST
Committed 306724@main (18398035e7a4): <https://commits.webkit.org/306724@main> Reviewed commits have been landed. Closing PR #57783 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2026-02-03 10:55:14 PST
Note You need to log in before you can comment on or make changes to this bug.