Closed Bug 1762609 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33469 - speculation-rules prefetch WPT tests

Categories

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

task

Tracking

(firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Iman Saboori <isaboori@google.com> wrote:

speculation-rules prefetch WPT tests

  • speculation-rules prefetch should not work for http documents.
  • prefetch algorithm should assert url’s scheme is https and not http
  • any invalid/extra field in speculation-rules script should disable
    prefetching of pages. test for anonymizationPolicy. Based on the spec,
    the “Sec-Purpose” request header should also include a parameter with
    the "anonymous-client-ip" key

Bug: 1302365
Change-Id: I562e78c6b116729557013d374b00793518c62a47
Reviewed-on: https://chromium-review.googlesource.com/3566078
WPT-Export-Revision: c91100c00b859140504d100bff09b91915b26cc2

CI Results

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

Total 6 tests and 1 subtests

Status Summary

Firefox

OK : 6
FAIL: 6

Chrome

OK : 6
FAIL: 6

Safari

OK : 6
FAIL: 6

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/speculation-rules/prefetch/anonymous-client.https.html
test anonymous-client url prefetch for cross origin pages: FAIL (Chrome: FAIL, Safari: FAIL)
/speculation-rules/prefetch/invalid-rules.https.html
an unrecognized key in a prefetch rule should prevent it from being fetched: FAIL (Chrome: FAIL, Safari: FAIL)
/speculation-rules/prefetch/prefetch-single.https.html?from_protocol=http&to_protocol=https
test single https url prefetch from a http url: FAIL (Chrome: FAIL, Safari: FAIL)
/speculation-rules/prefetch/prefetch-single.https.html?from_protocol=http&to_protocol=http
test single http url prefetch from a http url: FAIL (Chrome: FAIL, Safari: FAIL)
/speculation-rules/prefetch/prefetch-single.https.html?from_protocol=https&to_protocol=http
test single http url prefetch from a https url: FAIL (Chrome: FAIL, Safari: FAIL)
/speculation-rules/prefetch/prefetch-single.https.html?from_protocol=https&to_protocol=https
test single https url prefetch from a https url: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0a5049a5e415
[wpt PR 33469] - speculation-rules prefetch WPT tests, a=testonly
https://hg.mozilla.org/integration/autoland/rev/e8f1d117202e
[wpt PR 33469] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.