Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Sep 30, 2021

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 26, 2021

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}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-3168517 branch 5 times, most recently from 8dc0374 to 1a7d071 Compare September 30, 2021 04:09
…ndering 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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants