Open Bug 1426208 Opened 2 years ago Updated 10 months ago

WebDriver:SwitchToWindow lets you switch to chrome windows from content context

Categories

(Testing :: Marionette, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: ato, Unassigned)

Details

The WebDriver:SwitchToWindow command lets you switch to chrome windows from content context.  We should disallow this.
Interesting find. I assume a lot of unit tests would also need an update.
[Mass Change 2018-01-15] Moving bugs to backlog
Priority: -- → P3

Problem here is that findWindow doesn't care about the context and always checks both the Chrome and DOM windows:

https://searchfox.org/mozilla-central/rev/b4ebbe90ae4d0468fe6232bb4ce90699738c8125/testing/marionette/driver.js#1540-1569

To fix that we should pass in the wanted context, or directly retrieve it inside this method.

No longer depends on: marionette-window-tracking
You need to log in before you can comment on or make changes to this bug.