Closed Bug 1825738 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 39301 - [fetch] Test that `User-Agent` is not a forbidden request header

Categories

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

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Andreu Botella <abotella@igalia.com> wrote:

[fetch] Test that User-Agent is not a forbidden request header

User-Agent used to be a forbidden request header until it was removed in whatwg/fetch#37. However, this was never added as a WPT test, and Chrome still treats it as forbidden. This change adds that test.

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 4 tests and 62 subtests

Status Summary

Firefox

OK : 4
PASS: 244
FAIL: 4

Chrome

OK : 4
PASS: 244
FAIL: 4

Safari

OK : 4
PASS: 244
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/baa91cf7aab7 [wpt PR 39301] - [fetch] Test that `User-Agent` is not a forbidden request header, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.