Closed Bug 2092820 Opened 16 days ago Closed 12 days ago

[wpt-sync] Sync PR 64499 - script, net: Set user activation for navigation requests

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
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-user header 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

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

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

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.