JSON serialization of Chrome Windows is broken
Categories
(Remote Protocol :: Marionette, defect, P2)
Tracking
(firefox147 fixed)
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m18][wptsync upstream][webdriver:relnote])
Attachments
(6 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
The current code in Marionette is not able to correctly serialize a ChomeWindow into a WebWindow reference due to the following issue:
- When cloning the
ChromeWindowto JSON we assume that each top-level browsing context has abrowserId. This doesn't apply for top-level browsing contexts in a ChromeWindow. We need to use the browsing context directly instead. - All the logic around creating a navigable id for a ChromeWindow and using it later is currently based on the
_chromeWindowHandlesmap from the WindowManager. This is not correct for Marionette because its term ofwindowis the top-level browsing context, but not the window itself. As such we need the logic from the NaviableManager.
I need the correct logic to write proper wdspec tests for bug 1944568.
| Assignee | ||
Comment 1•2 months ago
|
||
This is more complicated than I initially thought. While we still have to support unloaded tabs it might be good to keep the browserId as reference for top-level content browsing contexts. But having the chrome browsing context handles in the same map will then cause conflicts because ids are overlapping.
That means when I want to fix the above mentioned issues I need to keep using browserId, but already use the extra chrome id map as backed by the BiMap class as introduced on bug 1944568. I need to do more refactoring to get this finished.
| Assignee | ||
Comment 2•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 3•1 month ago
|
||
| Assignee | ||
Comment 4•1 month ago
|
||
| Assignee | ||
Comment 5•1 month ago
|
||
| Assignee | ||
Comment 6•1 month ago
|
||
| Assignee | ||
Comment 7•1 month ago
|
||
| Assignee | ||
Updated•1 month ago
|
Comment 10•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/49908c966ae2
https://hg.mozilla.org/mozilla-central/rev/253e94b59cdb
https://hg.mozilla.org/mozilla-central/rev/3926b82031cb
https://hg.mozilla.org/mozilla-central/rev/1f3ddd9baedb
https://hg.mozilla.org/mozilla-central/rev/b29d709c2834
https://hg.mozilla.org/mozilla-central/rev/49c5526b88eb
Updated•1 month ago
|
| Assignee | ||
Updated•11 days ago
|
Description
•