Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6aba30dbd4f6fb50e8bb2a0e31a50a4f0dcdba35
https://github.com/WebKit/WebKit/commit/6aba30dbd4f6fb50e8bb2a0e31a50a4f0dcdba35
Author: Razvan Caliman <[email protected]>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M Source/WebInspectorUI/UserInterface/Views/ResourceClusterContentView.js
Log Message:
-----------
Web Inspector: (REGRESSION 308142@main): Network: "Request Data" go-to arrow
shows the response instead of the request
https://bugs.webkit.org/show_bug.cgi?id=325522
rdar://179137784
Reviewed by Qianlang Chen.
308142@main made `WI.ResourceClusterContentView.prototype.restoreFromCookie()`
wait for
custom content views to load before showing the preferred content view
(Response by default).
`restoreFromCookie()` runs every time the content view is shown. Callers that
switch to the
Preview tab and immediately call `showRequest()`, like the "Request
Data" go-to arrow in
the Headers tab, get their choice overwritten when the pending restore
completes. The same
applies to the request/response body go-to arrows in the Sizes tab.
The fix in this patch gives each `restoreFromCookie()` call a unique token
(every `Symbol()` is unique)
and ignores the deferred restore if the token has changed. Explicitly showing a
content view clears
the token so it takes precedence over a pending restore. This applies to
`showRequest()`,
`showResponse()`, and picking from the Request / Response menu.
* Source/WebInspectorUI/UserInterface/Views/ResourceClusterContentView.js:
(WI.ResourceClusterContentView.prototype.restoreFromCookie):
(WI.ResourceClusterContentView.prototype.showRequest):
(WI.ResourceClusterContentView.prototype.showResponse):
(WI.ResourceClusterContentView.prototype._pathComponentSelected):
Canonical link:
https://flagged.apple.com:443/proxy?t2=DU3O2h1ve4&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzIyMjY5QG1haW4=&emid=6e2a5cf9-0ebf-4ee5-989b-51096b234a26&c=11
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications