SIGN IN SIGN UP

[compression-dictionary] Add a test for same-origin no-cors fetch

As of 2026/09/03, the PR against the fetch spec [1] says that
"HTTP-network compression-dictionary fetch" should fallback to
"HTTP-network fetch" if request's mode is "no-cors". However,
this seems to be a mistake since Chromium allows using compression
dictionaries for same-origin [2]. Chromium's behavior is already
implicitly covered by compressed-large-resources-001.tentative, which
checks "no-cors" fetches via img/script/link tags but this CL adds a
more straightforward test that is easier to compare against its
cross-origin version. The CL also adds dictionary ids to make the
test a bit more robust.

[1] https://github.com/whatwg/fetch/pull/1854
[2] https://source.chromium.org/chromium/chromium/src/+/main:services/network/cors/cors_url_loader.cc;l=366?q=LOAD_CAN_USE_SHARED_DICTIONARY&ss=chromium%2Fchromium%2Fsrc

Bug: 40255884
Change-Id: I879382048ed18d45b629a1b8ae2b5d0461d06cb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8353624
Reviewed-by: Patrick Meenan <pmeenan@chromium.org>
Commit-Queue: Frédéric Wang Nélar <fwang@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1691778}
F
Frédéric Wang Nélar committed
2c385f65e4a4340bc6320b2745e86641b5710346
Parent: 223b368
Committed by Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> on 9/3/2026, 11:27:36 PM