Closed Bug 1925345 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 48676 - Fenced frame: Fix some WPTs in headless mode.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Liam Brady <lbrady@google.com> wrote:

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/5935060
WPT-Export-Revision: 8af881474790563f01f2d3231e4d1e755ffddbf2

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.