Closed Bug 1830575 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39752 - [no-vary-search-hint] Add WPT test for No-Vary-Search hint functionality

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Liviu Tinta <liviutinta@chromium.org> wrote:

[no-vary-search-hint] Add WPT test for No-Vary-Search hint functionality

In order to add a WPT test we have to create a situation where the
navigation to a potentially matching URL happens before the browser
receives the headers, but after the browser makes the prefetch request.

In order to synchronize the navigation we are introducing a new
python handler which will synchronize the in flight prefetch with the
WPT test by using request.server.stash.

Flow:

  • prefetch prefetch_nvs_hint.py?uuid=...&nvs_header=...&otherqueryparams
  • the prefetch request above includes no_vary_search_hint in the speculation
    rules
  • the server blocks progress on this prefetch request on the server side so
    from the browser perspective the server is "thinking"
  • the test starts navigation to
    prefetch_nvs_hint.py?uuid=...&nvs_header=...&otherdifferentqueryparams.
    This navigation matches by No-Vary-Search hint the above in
    progress prefetch.
  • the test fetches prefetch_nvs_hint.py?uuid=...&unblock="unblock"
    which unblocks the in progress prefetch so that the in-progress
    navigation can continue

Bug: 1416659
Change-Id: I1b33b2bb8c649744f59ff6fda9f45cabeaa88847
Reviewed-on: https://chromium-review.googlesource.com/4490867
WPT-Export-Revision: 3860f28138e4e83017eee03ed7ed367301536077

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 25 tests and 1 subtests

Status Summary

Firefox

OK : 25
FAIL: 25

Chrome

OK : 25
PASS: 7
FAIL: 18

Safari

OK : 25
FAIL: 25

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/e00d8f3becd8 [wpt PR 39752] - [no-vary-search-hint] Add WPT test for No-Vary-Search hint functionality, a=testonly https://hg.mozilla.org/integration/autoland/rev/3e2fb1385e73 [wpt PR 39752] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.