-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
web-platform-tests/wpt@bef892c489 replaced window.open() + polling for opening testharness windows with the WebDriver "New Window" command, which doesn't run focusing steps. This inadvertently broke tests that implicitly relied on initial focus, such as:
- https://crrev.com/c/6341204
- https://wpt.fyi/results/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept.html?label=master&label=experimental&aligned&view=interop&q=label%3Ainterop-2025-navigation
- Fix focus related failures due to URL bar being focused on launch wpt#56270
I think we should clarify and maybe document what (if any) initial focus target WPT guarantees. If we decide not to guarantee anything, each test will need to set up its own initial focus target.
As a point of comparison, the Marionette testharness implementation currently provides focus=True, which means "the opened window will be focused" (similar to the pre-bef892c489 WebDriver behavior).
Metadata
Metadata
Assignees
Labels
No labels