Serialization of WindowProxy fails for out-of-process iframes
Categories
(Remote Protocol :: WebDriver BiDi, defect, P1)
Tracking
(firefox122 fixed)
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: whimboo, Assigned: Sasha)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m9][webdriver:relnote])
Attachments
(2 files)
As seen on https://github.com/w3c/webdriver-bidi/issues/418 we currently fail to correctly serialize the .contentWindow property of an OOP iframe. Due to that we return a plain object but not a WindowProxy remote value.
As example you can use that page to create an iframe with a cross-origin URL:
https://mathiasbynens.github.io/css-dbg-stories/iframe-navigations.html
When trying to serialize window.frames[0] an object is returned because we only check the class name. But given that this is a magic object this fails. Instead we need to run a check with Window.isInstance(value) to properly run this check here:
Sasha, would you mind to take that? It's needed so that we can get rid of the Fission related preferences from Puppeteer for BiDi.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D195210
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f716db0179c3
https://hg.mozilla.org/mozilla-central/rev/ee79c48e48ea
| Assignee | ||
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
Description
•