Bug 310251

Summary: Web Inspector: Site Isolation: Network domain sourceMappingURL forwarding
Product: WebKit Reporter: Blaze Burg <bburg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 308890    
Bug Blocks:    

Blaze Burg
Reported 2026-03-18 23:16:19 PDT
FrameNetworkAgentProxy::didFinishLoading sends an empty string for the sourceMappingURL parameter because the SI path does not hold CachedResource references. In the legacy path, InspectorNetworkAgent reads the source map URL from the CachedResource parsed metadata (ResourceUtilities::sourceMapURLForResource). Without this, source maps do not auto-link in the Network panel for resources loaded in cross-origin iframes under Site Isolation. Possible fixes: (1) Extract the SourceMap HTTP response header during responseReceived and store it on the BackendResourceDataStore entry. This handles server-provided source maps but not inline //# sourceMappingURL= directives. (2) Parse the buffered content for the sourceMappingURL pattern after decoding. (3) Add a new instrumentation hook that fires after CachedResource processes its headers/content. Sub-bug of rdar://143782685.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-03-18 23:16:25 PDT
Note You need to log in before you can comment on or make changes to this bug.