Automatic update from web-platform-tests
Map `private-network-access` web-feature (#56696)
Feature: `private-network-access`
Reference: https://github.com/web-platform-dx/web-features/blob/main/features/private-network-access.yml
This feature has been superseded and is discouraged. There is a single test that tests the legacy headers.
Notable exclusions
1. `fetch/local-network-access/*`
- These tests cover the newer "Local Network Access" feature which supersedes Private Network Access. They are already mapped to `local-network-access`.
Co-authored-by: Chris Cuellar <[email protected]>
--
wpt-commits: abba6fad03c1be4937ca989df70fb265d9b726c8
wpt-pr: 56696
Automatic update from web-platform-tests
classifies "fetch" and "fetch-later" web features (#56551)
--
wpt-commits: 928847746471199e194adf0e756390dbbbfcd9a4
wpt-pr: 56551
Nothing strongly grabs ReadableStream nor FetchStreamReader while waiting for nsIAsyncOutputStream to respond. mAsyncWaitReader should now strongly grab the reader until the output stream responds.
Differential Revision: https://phabricator.services.mozilla.com/D234031
Automatic update from web-platform-tests
Fetch: make non-Float16Array support a test instead of a harness fail
--
wpt-commits: b9130061b3b79f060e268757ef22d68212d1027a
wpt-pr: 46278
Automatic update from web-platform-tests
Update tests which are generic across all TypedArrays for Float16Array
For https://github.com/whatwg/webidl/pull/1398.
--
wpt-commits: 5aa50dd4151b5bc1d04d5505366c6e27df30af5b
wpt-pr: 45483
Automatic update from web-platform-tests
Reapply "Reapply "ReadableStream should be cancelled on aborting fetch streaming upload""
This reverts commit 826c3cab0db8660bf355979664daa9475d855cef.
This CL reapplies the CL fixing the ci test failure:
https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20Tests%20(dbg)(1)/119114/test-results?sortby=&groupby=
(see the diff from Patchset#1)
TEST: third_party/blink/tools/run_wpt_tests.py --release -p chrome external/wpt/webdriver/tests/bidi/network/
Fixed: 40071725
Change-Id: I021c29e016bef9f3ef7c980fa038a13bdd9a0369
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5363997
Commit-Queue: Yoichi Osato <[email protected]>
Reviewed-by: Adam Rice <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1272576}
--
wpt-commits: 5abfea3260af2a20a69606743d87b56fbc478315
wpt-pr: 45075
Automatic update from web-platform-tests
ReadableStream should be cancelled on aborting fetch streaming upload (#44847)
Following https://fetch.spec.whatwg.org/#abort-fetch, this CL
lets FetchManager cancels the body ReadableStream with error.
This also fixes fetch itself rejects with the error as well.
Fixed: 40071725
Change-Id: Iaed204b1facd1ef94047cd5342ad3eb1ce6aa260
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5261357
Reviewed-by: Adam Rice <[email protected]>
Commit-Queue: Yoichi Osato <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1268209}
Co-authored-by: Yoichi Osato <[email protected]>
--
wpt-commits: 5e9955028082d111b566d19c4f72b06d07737dd1
wpt-pr: 44847
Automatic update from web-platform-tests
[wptrunner] Do not include `testharness{,report}.js` twice (#43984)
Injecting `<script src="/resources/testharness{,report}.js">` is an
implicit behavior of `wptserve` for `.js` files [0].
Including `testharnessreport.js` twice for `content_shell` appears
benign, but causes issues for the default WebDriver testharness
implementation. Exporting this change will enable useful coverage for
such browsers.
A follow-up PR upstream will have `wpt lint` ban such duplicate scripts.
[0]: https://github.com/web-platform-tests/wpt/blob/9e0d5be/tools/serve/serve.py#L273-L451
Bug: 1518022
Change-Id: I7a6e344c82bbaa33adfa578feeb966fa92f08040
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5195267
Commit-Queue: Jonathan Lee <[email protected]>
Reviewed-by: Weizhong Xia <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1247652}
Co-authored-by: Jonathan Lee <[email protected]>
--
wpt-commits: f66439a5ca42e416c30740cb25a7a72f3dda6d54
wpt-pr: 43984
Automatic update from web-platform-tests
Fetch: ensure UTF-8 is used for the URL parser
--
wpt-commits: 0fd6e2d5194081a13d8dee729a0c289d3b6b09af
wpt-pr: 41894
Automatic update from web-platform-tests
invalid blob type should be equivalent to an empty type (#41461)
A Blob with a type that is a non-parsable MIME type should result in
a empty content-type.
--
wpt-commits: 133ffd879d2af04649778b5a9c6255e238dcfe4a
wpt-pr: 41461
Tests have shown that web pages use base64url encoded integrity
metadata when using SRI, as other browsers are already supporting it.
To align cross-browser behavior, we'll support base64url and base64
in parallel and update the tests from wpt at the same time.
Differential Revision: https://phabricator.services.mozilla.com/D178147
Automatic update from web-platform-tests
[keepalive-migration] Add basic in-browser redirect logic
## Context
When a renderer is alive, a keepalive redirect request goes through a
series of checks & modifications scattering around 7 methods [1] before
calling `mojom::URLLoader::FollowRedirect()`. When the renderer dies,
redirect needs to be handled in browser.
## Changes
This CL adds logic to directly follow redirect in browser. It also
adds checks to verify safe target & Content-Security-Policy (CSP).
For CSP: `KeepAliveURLLoader` and
`KeepAliveURLLoaderFactory::FactoryContext` both maintain a refptr to
`content::PolicyContainerHost` to let `PolicyCcontainerHost` outlives
its RFHI.
[1]: https://docs.google.com/document/d/1ZzxMMBvpqn8VZBZKnb7Go8TWjnrGcXuLS_USwVVRUvY/edit#heading=h.6uwqtijf7dvd
Bug: 1356128
Change-Id: I16c42a3174379c03f80286499d893e40142f1857
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4383884
Code-Coverage: Findit <[email protected]>
Commit-Queue: Ming-Ying Chung <[email protected]>
Reviewed-by: Takashi Toyoshima <[email protected]>
Reviewed-by: Rakina Zata Amni <[email protected]>
Reviewed-by: Arthur Sonzogni <[email protected]>
Reviewed-by: Kenichi Ishibashi <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1131056}
--
wpt-commits: b651a8812595c7c90354cf0e1fe916388c1f1e49
wpt-pr: 39364
Automatic update from web-platform-tests
fetch: Add a test for SRI check with null body status
a fetch with SRI metadata should abort when the response has a
null body status, per step 22.2 of [1].
[1] https://fetch.spec.whatwg.org/#main-fetch
Bug: 1427319
Change-Id: I4635c77639589ce17fa4cd215a65792a7c330494
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4369033
Commit-Queue: Kenichi Ishibashi <[email protected]>
Reviewed-by: Adam Rice <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1122899}
--
wpt-commits: 62293ebf20600d4d27c6b6b77df94b49fae18e54
wpt-pr: 39212
Automatic update from web-platform-tests
Fetch: fix blob.slice tests content-length assert
The content-length checks in the fetch blob.slice tests are not valid. Add content to the input blob to ensure that blob.slice does not sniff the content-type and fix the content-length check.
--
wpt-commits: 2d7b8179f353a4257e17e03bbc9a5250dcdad0c2
wpt-pr: 36594
Automatic update from web-platform-tests
Fetch: blob without type should have an empty Content-Type header
--
wpt-commits: 11d77695ed512d00b12b8c9f96a222782a744ddd
wpt-pr: 36243
Automatic update from web-platform-tests
Fetch: tests for RequestInit's duplex
See https://github.com/whatwg/fetch/pull/1457 for context.
--
wpt-commits: a9b73f530b73d237b0512968715104c96631c22a
wpt-pr: 34496
Automatic update from web-platform-tests
Fix streaming upload tests
- Streaming upload is disabled on HTTP/1.1. Move some tests to the
h2 file.
- Explicitly test that streaming upload is blocked on HTTP/1.1.
421 handling hasn't been implemented yet.
Also fix the implementation which blocked CORS requests unintentionally.
Change-Id: I8da8ea411ae6d55e2d7dfddc34f3da529651aa7f
Bug: 1234368
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3699531
Commit-Queue: Yutaka Hirano <[email protected]>
Reviewed-by: Yoichi Osato <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1014859}
--
wpt-commits: d387101095115f28446dbf2da77fb64dea697815
wpt-pr: 34418
Automatic update from web-platform-tests
Fetch: add tests for data: and about:blank with a range request
See https://github.com/whatwg/fetch/issues/1070 for context.
--
wpt-commits: 333c51b8d345b00b05854d9774b56bc95098f1c3
wpt-pr: 34213
Automatic update from web-platform-tests
Fetch: add test for fetch of empty blob
Add test for fetch of a blob: URL without a backing blob.
--
wpt-commits: 23e7602b7784c758397308183f414bb99e0c622b
wpt-pr: 33941
Automatic update from web-platform-tests
Fetch: Response.body should be null for some network responses (#32813)
--
wpt-commits: 0cc0ea7fadbcc2e1b534c49abdd17a19932d244f
wpt-pr: 32813
Automatic update from web-platform-tests
Fetch/XHR: statusText when using H2
Fixes#7274.
--
wpt-commits: 343538f38ce65dc0d0b446e00cc7f4eb38d4705e
wpt-pr: 12490
Automatic update from web-platform-tests
Fetch: resp body shouldn't buffer if content-type is missing
--
wpt-commits: 6165b734019bc0b1fb91868f348ec7fc58543f99
wpt-pr: 29698
Automatic update from web-platform-tests
Have fetch streaming upload tests to run with HTTP/2 (#28236)
Move the test cases to request-upload.h2.any.js.
Whether we want to support streaming upload for HTTP/1.1 is
being discussed, and we may end up adding similar tests for
HTTP/1.1 later.
--
wpt-commits: 0573c1bd843d06def127be06833985b083213ada
wpt-pr: 28236