WebDriver:SwitchToWindow should not allow switching by window name

NEW
Unassigned

Status

defect
P2
normal
3 years ago
2 months ago

People

(Reporter: standard8, Unassigned)

Tracking

(Depends on 2 bugs, Blocks 1 bug, {pi-marionette-spec})

Version 3
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

The w3c specification for WebDriver [1] doesn't allow for passing a window "name" as a handle to switchToWindow - only an id.

Currently the code allows for a "name" or an "id", however the implementation of "name" is wrong as it uses the window name of the actual window rather than the window.name of the content process within a tab (xref bug 1283941).

Seeing as it doesn't need to be supported, we should just remove the name option to save confusion.

[1] https://w3c.github.io/webdriver/webdriver-spec.html#switch-to-window
Blocks: webdriver
Summary: switchToWindow shouldn't take a handle as a name. → switchToWindow shouldn't take a handle as a name
OS: Unspecified → All
Hardware: Unspecified → All
Summary: switchToWindow shouldn't take a handle as a name → Switch To Window should not allow switching by window name
Priority: -- → P2
Summary: Switch To Window should not allow switching by window name → WebDriver:SwitchToWindow should not allow switching by window name
You need to log in before you can comment on or make changes to this bug.