Open Bug 1812258 Opened 3 years ago Updated 3 years ago

Improve browsing context existence check for browserless tab support

Categories

(Remote Protocol :: Marionette, task, P3)

Default
task

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

Details

As noticed on bug 1691683 comment 9 we have an issue with the browsing context check in at least the Close Window command when the selected tab has an unloaded browser:

https://searchfox.org/mozilla-central/rev/df68a65540f2227e27a12ed0b491188e2927f6d5/remote/marionette/driver.sys.mjs#2188-2190

In such a case no browsing context will be available and the command fails. With the patch on bug 1691683 we will temporarily trigger the creation of the message manager, which on its own will create a browsing context.

This step is temporary and we should check what we actually should do to better handle such a situation with browserless tabs. We should also ask if other commands should work as well, or if only closing the window should have an exception. Note that focusing such a tab will cause the underlying browser to be created.

Product: Testing → Remote Protocol

The product has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --
You need to log in before you can comment on or make changes to this bug.