WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165683
Web Inspector: Add tests for Fetch API Network Data (CORs, Opaque Responses, Filtered Headers)
https://bugs.webkit.org/show_bug.cgi?id=165683
Summary
Web Inspector: Add tests for Fetch API Network Data (CORs, Opaque Responses, ...
Joseph Pecoraro
Reported
2016-12-09 14:11:43 PST
Summary: Add tests for Fetch API Network Data (CORs, Opaque Responses, Filtered Headers) Fetch API has many modes, and can filter data from the JavaScript exposed Response data. However Web Inspector should always be able to see complete information about the Network requests. This should already be the case, but we should add tests to verify that and make sure it doesn't regress!
Attachments
[PATCH] Proposed Fix
(10.67 KB, patch)
2016-12-09 19:23 PST
,
Joseph Pecoraro
bburg
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-12-09 19:23:32 PST
Created
attachment 296769
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 2
2016-12-12 09:27:22 PST
Comment on
attachment 296769
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=296769&action=review
r=me
> LayoutTests/http/tests/inspector/network/fetch-network-data.html:47 > + InspectorTest.expectEqual(resource.responseHeaders["X-Custom-Header"], "Custom-Header-Value", "Should be able to see X-Custom-Header.");
This is pretty sweet.
> LayoutTests/http/tests/inspector/network/fetch-network-data.html:62 > + name: "Network.Fetch.ModeCORs.SameOrigin",
Nit: it should always be 'CORS' as it is an acronym, unless it's 'cors' as in the literal value.
> LayoutTests/http/tests/inspector/network/fetch-network-data.html:100 > + fetch("
http://localhost:8000/inspector/network/resources/cors-data.pl
", {mode: "same-origin"}).then(
Neat. Maybe we should start using this in inspector & tests for loading files, instead of XHR?
Joseph Pecoraro
Comment 3
2016-12-12 15:37:20 PST
<
https://trac.webkit.org/changeset/209734
>
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