Bug 310251
| Summary: | Web Inspector: Site Isolation: Network domain sourceMappingURL forwarding | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Blaze Burg <bburg> |
| Component: | Web Inspector | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/172894304>