Bug 306868
| Summary: | REGRESSION (306223@main): Remote Web Inspector broken | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Pablo Saavedra <psaavedra> |
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | hi, inspector-bugzilla-changes, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=306234 | ||
Pablo Saavedra
... 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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Devin Rousso
Pull request: https://github.com/WebKit/WebKit/pull/57783
Pablo Saavedra
https://github.com/WebKit/WebKit/pull/57783 fixes this issue.
EWS
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
<rdar://problem/169546674>