Add support for serialization of platform objects of type Node
Categories
(Remote Protocol :: WebDriver BiDi, task, P1)
Tracking
(firefox109 fixed)
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [webdriver:m5], [wptsync upstream], [webdriver:relnote] )
Attachments
(2 files)
Once bug 1692468 is fixed web elements from WebDriver classic could be also shared by WebDriver BiDi. To get this implemented we have to follow the BiDi specification around serialization of platform objects of type node:
https://w3c.github.io/webdriver-bidi/#ref-for-boundary-point-node
The following restrictions will apply to this bug so that we can better split the work into several bugs:
- Start with the object itself and do not care about child nodes (maxDepth argument)
- Do not add support for node details (will be done by bug 1770733)
- Support the
sharedId
property
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
I've started the work on this bug today and got existing serialization tests to pass. As noticed there is no notion of a node details
flag anymore in the BiDi spec. As such there is no such basic support anymore, and I'm going ahead and will implement the complete serialization.
Note that sharing elements and shadow roots between Marionette and WebDriver BiDi will be done via bug 1770733. For now clients can request ownership and get a handle included to reference back the remote value.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #1)
Note that sharing elements and shadow roots between Marionette and WebDriver BiDi will be done via bug 1770733. For now clients can request ownership and get a handle included to reference back the remote value.
Because of that this bug is no longer blocked on bug 1692468.
Assignee | ||
Comment 3•2 years ago
|
||
Right now we actually do not differentiate between platform objects of type Node
and Element
specifically.
Assignee | ||
Comment 4•2 years ago
|
||
I filed bug 1802137 which moves out the serialization of Shadow DOM related scenarios.
Assignee | ||
Comment 5•2 years ago
|
||
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D163004
Comment 9•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4d7899fd983b
https://hg.mozilla.org/mozilla-central/rev/17958bffdfcf
Updated•2 years ago
|
Description
•