WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
318493
[Site Isolation] Web Inspector: Network domain emulations/headers not forwarded to web process
https://bugs.webkit.org/show_bug.cgi?id=318493
Summary
[Site Isolation] Web Inspector: Network domain emulations/headers not forward...
Qianlang Chen
Reported
2026-07-02 16:25:50 PDT
ProxyingNetworkAgent stubs out three Network domain configuration commands without actually applying them. setExtraHTTPHeaders and setResourceCachingDisabled both carry explicit `// FIXME: Forward to all WebContent processes` comments. setEmulatedConditions returns `makeUnexpected("Not supported")` unconditionally In the non-SI path, InspectorNetworkAgent::setExtraHTTPHeaders populates m_extraRequestHeaders, which willSendRequest applies to every outgoing request (InspectorNetworkAgent.cpp lines 415–416, 771–772). setResourceCachingDisabled calls Page::setResourceCachingDisabledByWebInspector via PageNetworkAgent::setResourceCachingDisabledInternal (PageNetworkAgent.cpp:117). setEmulatedConditions reaches WebsiteDataStore::setEmulatedConditions → NetworkProcess::setEmulatedConditions through the WebInspectorBackendClient → WebInspectorUIProxy chain (WebInspectorUIProxy.cpp:812) Without these, extra request headers set in the inspector are silently dropped, cache disabling has no effect on cross-origin iframes under SI, and network throttling emulation does nothing Possible fixes: (1) For setExtraHTTPHeaders and setResourceCachingDisabled: add new SetExtraHTTPHeaders and SetResourceCachingDisabled IPC messages to WebInspectorBackend.messages.in, handle them in WebInspectorBackend to forward to the page's InspectorNetworkAgent, and implement ProxyingNetworkAgent to fan the messages out via forEachWebContentProcess (matching the existing pattern used by EnableNetworkInstrumentation) (2) For setEmulatedConditions: since ProxyingNetworkAgent already lives in the UIProcess and has access to WebPageProxy, it can call m_inspectedPage->websiteDataStore().setEmulatedConditions(...) directly — bypassing the WebContent-process hop that the legacy path requires
rdar://181060656
Attachments
Add attachment
proposed patch, testcase, etc.
Qianlang Chen
Comment 1
2026-07-02 16:30:41 PDT
Pull Request:
https://github.com/WebKit/WebKit/pull/68573
EWS
Comment 2
2026-07-09 09:38:24 PDT
Committed
316819@main
(65ee250042a1): <
https://commits.webkit.org/316819@main
> Reviewed commits have been landed. Closing PR #68573 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug