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:
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).
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: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).