WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
213411
Web Inspector: do not report data on the rejected intercepted CORS request
https://bugs.webkit.org/show_bug.cgi?id=213411
Summary
Web Inspector: do not report data on the rejected intercepted CORS request
Pavel Feldman
Reported
2020-06-19 15:37:53 PDT
Resource can become disregarded right after the call to `didReceiveResponse`. Do not report received buffer and loading finished to such request.
Attachments
Patch
(7.24 KB, patch)
2020-06-19 15:40 PDT
,
Pavel Feldman
hi
: review+
pfeldman
: commit-queue?
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2020-06-19 15:40:40 PDT
Created
attachment 402339
[details]
Patch
Devin Rousso
Comment 2
2020-06-22 17:46:04 PDT
Comment on
attachment 402339
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=402339&action=review
r=me
> Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp:1295 > + return;
Style: please add a newline after this `return`
> LayoutTests/http/tests/inspector/network/intercept-cors-request.html:12 > + let response = await fetch("
http://localhost:8000/data
", { mode: "cors" });
Style: no space after `{` or before `}` when inlined
> LayoutTests/http/tests/inspector/network/intercept-cors-request.html:15 > + return { error: e.message };
Ditto (:12)
> LayoutTests/http/tests/inspector/network/intercept-cors-request.html:21 > + InspectorTest.debug();
oops
> LayoutTests/http/tests/inspector/network/intercept-cors-request.html:58 > + name: "Network.interceptRequestWithResponse.CORS allow origin",
NIT: we usually don't use spaces in test case names, preferring camel casing and periods. ``` name: "Network.interceptRequestWithResponse.CORS.Origin.Allow", ```
> LayoutTests/http/tests/inspector/network/intercept-cors-request.html:66 > + name: "Network.interceptRequestWithResponse.CORS disallow origin",
Ditto (:58) ``` name: "Network.interceptRequestWithResponse.CORS.Origin.Disallow", ```
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