Closed Bug 2071582 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62651 - Fetch: redirects after a CORS-preflight are followed

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62651 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62651
Details from upstream follow.

Anne van Kesteren <annevk@annevk.nl> wrote:

Fetch: redirects after a CORS-preflight are followed

Fetch removed the redirect mode "error" override for preflighted requests in whatwg/fetch#204, so a redirect after a successful CORS-preflight is followed and the new URL gets its own preflight. Redirecting the preflight itself is still a network error.

All three engines already implement this and carry failure expectations for the "after preflight failed" subtests.

Component: web-platform-tests → DOM: Networking
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 51 tests and 1 subtests

Status Summary

Firefox

OK : 4[GitHub] 49[Gecko-windows11-32-25h2-debug] 51[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 40[GitHub] 763[Gecko-windows11-32-25h2-debug] 781[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 4

Chrome

OK : 4
PASS: 40

Safari

OK : 4
PASS: 40

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

  • /fetch/api/cors/cors-multiple-origins.sub.any.worker.html [wpt.fyi]: OK [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], SKIP [Gecko-windows11-32-25h2-debug]
  • /fetch/api/cors/cors-preflight-referrer.any.html [wpt.fyi]: OK [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], SKIP [Gecko-windows11-32-25h2-debug]
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a5b6d0f4c4cf https://hg.mozilla.org/integration/autoland/rev/5f255af9cedf [wpt PR 62651] - Fetch: redirects after a CORS-preflight are followed, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.