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

Commits on Sep 30, 2021

  1. Prerender: Upstream a basic test for SpeculationRules triggered prere…

    …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}
    nhiroki authored and chromium-wpt-export-bot committed Sep 30, 2021
    Copy the full SHA
    851b775 View commit details
    Browse the repository at this point in the history