Bug 306075

Summary: [Site Isolation] create proxying version of PageAgent based in UIProcess
Product: WebKit Reporter: Blaze Burg <bburg>
Component: Web InspectorAssignee: Blaze Burg <bburg>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 308895, 308896, 308897, 308898, 308899, 308900, 309222, 309223    

Blaze Burg
Reported 2026-01-22 16:12:47 PST
Design sketch: 1. Create ProxyingPageAgent in UIProcess, owned by WebPageInspectorController. When site-isolation is enabled, this domain takes over dispatch of the Page domain commands coming from the frontend. ProxyingPageAgent maintains the same PageTarget-based API for forward and backward compatibility with all frontends. 2. Create new PageAgentProxy in WebProcess, which duplicates the "instrumenting" of PageAgent including InspectorInstrumentation hooks and a slot in WebCore::InstrumentingAgents. Events (domContentLoaded, etc) get forwarded to the agent in UIProcess and dispatched out to the frontend. An IPC interface between ProxyingPageAgent and PageAgentProxy will provide a way to collect frame info from each WebProcess as needed. Enablement is bootstrapped via IPC::Messages::WebInspectorBackend:EnablePageInstrumentation. 3. Keep legacy PageAgent implementation around as LegacyPageAgent. We'll need to maintain it in the short-term as a fallback for ProxyingPageAgent, and in the longer-term for WebKitLegacy support. It will continue to live only in top-document's WebProcess, attached to PageInspectorController. Commands not yet implemented for ProxyingPageAgent will be forwarded to the LegacyPageAgent.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-01-22 16:13:08 PST
Blaze Burg
Comment 2 2026-03-23 10:46:19 PDT
EWS
Comment 3 2026-05-25 21:36:37 PDT
Committed 313867@main (6fd4b1f654c6): <https://commits.webkit.org/313867@main> Reviewed commits have been landed. Closing PR #61177 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.