| Summary: | Web Inspector: XHR request with same URL as main resource will hide the main resource request | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bburg, hi, inspector-bugzilla-changes, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Devin Rousso
2020-06-05 15:22:35 PDT
Created attachment 401208 [details]
Patch
Comment on attachment 401208 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401208&action=review > Source/WebInspectorUI/UserInterface/Controllers/NetworkManager.js:-975 > - // This is a new request for an existing frame, which might be the main resource or a new resource. > - if (resourceOptions.type === "Document" && frame.mainResource.url === url && frame.loaderIdentifier === resourceOptions.loaderIdentifier) > - resource = frame.mainResource; I personally think that this is possibly a scary change, but at the same time I do think that this code is somewhat nonsensical, and my own local testing from browsing around the web didn't see any impact AFAICT. Comment on attachment 401208 [details]
Patch
Can a test be written for this behavior? It seems not specific to the UI.
Created attachment 401477 [details]
Patch
Comment on attachment 401477 [details]
Patch
r=me, thank you
Committed r262842: <https://trac.webkit.org/changeset/262842> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401477 [details]. |