Closed Bug 1733770 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 30971 - Prerender: Upstream a basic test for SpeculationRules triggered prerendering to WPT

Categories

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

task

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hiroki Nakagawa <nhiroki@chromium.org> wrote:

Prerender: Upstream a basic test for SpeculationRules triggered prerendering to WPT

This CL upstreams a basic prerender test that confirms
document.prerendering and document.onprerenderingchange event on
pages prerendered by SpeculationRules to the WPT repository.

Directory structure

This introduces a new directory speculation-rules/ and a sub directory
speculation-rules/prerender/. Tests for other pre* features triggered by
SpeculationRules will be placed in subdirectories of speculation-rules/.

Feature detection

The test checks if SpeculationRules is available using
HTMLScriptElement.supports('speculationrules'). This doesn't exactly
check if SpeculationRules triggered prerendering is available, but
currently this is the only way to (roughly) detect the feature and still
useful for avoiding timeout on other user agents.

For VIRTUAL_OWNERS

This CL just moves the existing test to the new directory and updates
the VirtualTestSuites configuration for the directory, so this doesn't
increase the number of tests to run.

Change-Id: I3fbd729de42f560b9157ff1a3b4ba6e4e973a0d6
Bug: 1253158
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3168517
Reviewed-by: Kent Tamura \<tkent@chromium.org>
Reviewed-by: Takashi Toyoshima \<toyoshim@chromium.org>
Reviewed-by: Jeremy Roman \<jbroman@chromium.org>
Reviewed-by: Lingqi Chi \<lingqi@chromium.org>
Commit-Queue: Hiroki Nakagawa \<nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#926625}

CI Results

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

Total 1 tests

Status Summary

Firefox

ERROR: 1

Chrome

ERROR: 1

Safari

ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/speculation-rules/prerender/state-and-event.html: ERROR (Chrome: ERROR, Safari: ERROR)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/30524a9bca9a
[wpt PR 30971] - Prerender: Upstream a basic test for SpeculationRules triggered prerendering to WPT, a=testonly
https://hg.mozilla.org/integration/autoland/rev/498efb6339b2
[wpt PR 30971] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.