[wpt-sync] Sync PR 42941 - [Private Network Access] Fix iframe tests
Categories
(Core :: DOM: Networking, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox121 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(9 files)
Sync web-platform-tests PR 42941 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/42941
Details from upstream follow.
Jonathan Hao <phao@chromium.org> wrote:
[Private Network Access] Fix iframe tests
In order to make navigation requests pass the CORS check, we have to
make the following changes.
When the request's mode is "navigate", its credentials mode must be
"include" [1], soAccess-Control-Allow-Origin
can't be*
and
Access-Control-Allow-Credentials
has to betrue
[2]. We make the
test server respond with these headers.The actual navigation requests will contain
Upgrade-Insecure-Requests
header, so we add this header to the
Access-Control-Allow-Headers
that the test server returns.
Accept
header value size of a navigation request can exceed the
safe limit 128, so I relaxed the limit behind a flag.[1] https://fetch.spec.whatwg.org/#concept-request-credentials-mode
[2] https://fetch.spec.whatwg.org/#cors-protocol-and-credentialsBug: 1291252
Change-Id: I8feffa7ab8652e3c5673ca57eae5f4b3d30f6459Reviewed-on: https://chromium-review.googlesource.com/5001469
WPT-Export-Revision: 41e40defcfab0ad92558dcbb62d33a8ff69e82fb
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Comment 1•1 years ago
|
||
Assignee | ||
Comment 2•1 years ago
|
||
Assignee | ||
Comment 3•1 years ago
|
||
Assignee | ||
Comment 4•1 years ago
|
||
Assignee | ||
Comment 5•1 years ago
|
||
Assignee | ||
Comment 6•1 years ago
|
||
Assignee | ||
Comment 8•1 years ago
|
||
Assignee | ||
Comment 9•1 years ago
|
||
Assignee | ||
Comment 10•1 year ago
|
||
Assignee | ||
Comment 11•1 year ago
|
||
Assignee | ||
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
Assignee | ||
Comment 14•1 year ago
|
||
Assignee | ||
Comment 15•1 year ago
|
||
Comment 16•1 year ago
|
||
bugherder |
Description
•