[wpt-sync] Sync PR 64499 - script, net: Set user activation for navigation requests
Categories
(Core :: DOM: Networking, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64499 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64499
Details from upstream follow.
Tim van der Lippe <tvanderlippe@gmail.com> wrote:
script, net: Set user activation for navigation requests
The
sec-fetch-userheader should only be set when the window has received a user interaction. Before, we would always send it for each navigation request, which is wrong.Based on the investigation in
https://github.com/whatwg/html/issues/13169 and the WhatWG Matrix chat, the relevant tests turned out to be wrong. They would bless the wrong window and these tests fail in all browsers. Therefore, this PR also updates the relevant tests and ensures that they pass in all browsers.Closes https://github.com/whatwg/html/issues/13169
Testing: new WPT tests passing and fixed existing tests
Reviewed in servo/servo#49492
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Comment 1•16 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119796
| Assignee | ||
Comment 2•16 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 6 tests and 72 subtests
Status Summary
Firefox
OK : 6
PASS: 234
FAIL: 4
Chrome
OK : 6
PASS: 232
FAIL: 6
Safari
OK : 6
PASS: 210
FAIL: 28
Links
Details
New Tests That Don't Pass
- /fetch/metadata/generated/element-a.https.sub.html [wpt.fyi]
- sec-fetch-mode - attributes: download:
FAIL(Chrome:FAIL, Safari:FAIL) - sec-fetch-dest - attributes: download:
FAIL(Chrome:PASS, Safari:FAIL)
- sec-fetch-mode - attributes: download:
- /fetch/metadata/generated/element-area.https.sub.html [wpt.fyi]
- sec-fetch-mode - attributes: download:
FAIL(Chrome:FAIL, Safari:FAIL) - sec-fetch-dest - attributes: download:
FAIL(Chrome:PASS, Safari:FAIL)
- sec-fetch-mode - attributes: download:
Comment 4•12 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b03e616747b4
https://hg.mozilla.org/mozilla-central/rev/05c68342074b
Description
•