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

Reland "Fenced frame: Fix some WPTs in headless mode." #48701

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Oct 18, 2024

The original CL was crashing in an instance where multiClick() was
invoked without an await. This fixes the crash by awaiting the clicks
instead of continuing with/finishing the test before all the clicks
have propagated inside navigate-ancestor-test-runner.https.html.

Original change's description:

Fenced frame: Fix some WPTs in headless mode.

There is currently a push to allow Chromium web platform tests to run
in headless mode (i.e. without a content shell). This requires some
changes to how fenced frame tests work. Headless mode does not support
test_driver functions from inside of fenced frames, as those require
access to the main frame's window to pass the message onto, which
fenced frames deliberately block for privacy reasons. This CL fixes
some of the tests that fail in headless mode by moving those
test_driver calls to the main frame, specifically clicking actions
(which we already have multiClick() to handle this in main frames),
and set_permission().

See the headless mode explainer:
https://chromium.googlesource.com/chromium/src/+/HEAD/headless/README.md

Change-Id: Iab82a581b67f8f8851c7716a2d72caf566f3b2ae
Bug: 366257368
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5935060
Reviewed-by: Andrew Verge <[email protected]>
Commit-Queue: Liam Brady <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1370151}

Bug: 366257368
Change-Id: Id998687c2f3de41a7b0dcd5197ba74fb22ef979e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5938155
Reviewed-by: Andrew Verge <[email protected]>
Commit-Queue: Liam Brady <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1370703}

The original CL was crashing in an instance where multiClick() was
invoked without an await. This fixes the crash by awaiting the clicks
instead of continuing with/finishing the test before all the clicks
have propagated inside navigate-ancestor-test-runner.https.html.

Original change's description:
> Fenced frame: Fix some WPTs in headless mode.
>
> There is currently a push to allow Chromium web platform tests to run
> in headless mode (i.e. without a content shell). This requires some
> changes to how fenced frame tests work. Headless mode does not support
> test_driver functions from inside of fenced frames, as those require
> access to the main frame's window to pass the message onto, which
> fenced frames deliberately block for privacy reasons. This CL fixes
> some of the tests that fail in headless mode by moving those
> test_driver calls to the main frame, specifically clicking actions
> (which we already have multiClick() to handle this in main frames),
> and set_permission().
>
> See the headless mode explainer:
> https://chromium.googlesource.com/chromium/src/+/HEAD/headless/README.md
>
> Change-Id: Iab82a581b67f8f8851c7716a2d72caf566f3b2ae
> Bug: 366257368
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5935060
> Reviewed-by: Andrew Verge <[email protected]>
> Commit-Queue: Liam Brady <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1370151}

Bug: 366257368
Change-Id: Id998687c2f3de41a7b0dcd5197ba74fb22ef979e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5938155
Reviewed-by: Andrew Verge <[email protected]>
Commit-Queue: Liam Brady <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1370703}
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.

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.

2 participants