WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
212850
Web Inspector: XHR request with same URL as main resource will hide the main resource request
https://bugs.webkit.org/show_bug.cgi?id=212850
Summary
Web Inspector: XHR request with same URL as main resource will hide the main ...
Devin Rousso
Reported
2020-06-05 15:22:35 PDT
# 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
Attachments
Patch
(2.26 KB, patch)
2020-06-05 15:24 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(5.44 KB, patch)
2020-06-09 14:53 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2020-06-05 15:24:17 PDT
Created
attachment 401208
[details]
Patch
Devin Rousso
Comment 2
2020-06-05 15:48:07 PDT
<
rdar://problem/33072149
>
Devin Rousso
Comment 3
2020-06-05 15:49:33 PDT
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.
Blaze Burg
Comment 4
2020-06-09 12:56:19 PDT
Comment on
attachment 401208
[details]
Patch Can a test be written for this behavior? It seems not specific to the UI.
Devin Rousso
Comment 5
2020-06-09 14:53:37 PDT
Created
attachment 401477
[details]
Patch
Blaze Burg
Comment 6
2020-06-10 09:13:30 PDT
Comment on
attachment 401477
[details]
Patch r=me, thank you
EWS
Comment 7
2020-06-10 09:20:52 PDT
Committed
r262842
: <
https://trac.webkit.org/changeset/262842
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 401477
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug