Skip to content

Initial focus assumption for tests #231

Description

@jonathan-j-lee

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions