"WindowManager.getIdForWindow" should not be shared between Marionette and Remote Agent
Categories
(Remote Protocol :: Agent, task, P3)
Tracking
(firefox148 fixed)
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [webdriver:m18])
Attachments
(2 files)
Windows are a different concept between Marionette and WebDriver BiDi. While for Marionette it relates to the top-level browsing context within the currently selected tab - or in case of chrome scope to the top-level browsing context of the active chrome window, in WebDriver BiDi each browsing context is a frame, and the real ChromeWindow is the clientWindow.
This is currently causing issues when code is shared in the WindowManager class, especially for generating / retrieving window ids. Parts of this problem I'm going to remove with my changes over on bug 2000801. But we should probably clear the usage of any WindowManager method from within Marionette which is not really related to manipulating the browsing window. What could be left is clearly the adjustWindowGeometry method.
By that we make sure that:
- The id for a clientWindow is currently only used in BiDi
- The id of a top-level browsing context is handled by the NavigableManager, this includes the top-level browsing context for Marionette
| Assignee | ||
Comment 1•1 month ago
|
||
There is as well the getIdForBrowsingContext method
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
| Assignee | ||
Comment 3•1 month ago
|
||
With WebDriver BiDi the clientWindow is referring to a ChromeWindow
instance while in Marionette a window is a top-level browsing
context. As such the same ids should not be shared, but Marionette
needs to rely on Navigable ids based on the top-level browsing
context.
Updated•1 month ago
|
Updated•1 month ago
|
Comment 5•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/66225f469809
https://hg.mozilla.org/mozilla-central/rev/7eff4951647e
Description
•