# STEPS TO REPRODUCE 1. inspect <https://webkit.org> 2. evaluate `var xhr = new XMLHttpRequest(); xhr.open('POST', location.href, true); xhr.send();` in the Console => icon of main resource in Sources Tab changes to match XHR, but no new resource is shown 3. repeat step 2 => new resource appears, but main resource still shows incorrectly
Created attachment 401208 [details] Patch
<rdar://problem/33072149>
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].