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•1 year ago
|
Updated•9 months ago
|
Assignee | ||
Updated•9 months ago
|
Assignee | ||
Comment 1•7 months 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•7 months ago
|
Assignee | ||
Comment 2•7 months 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•7 months ago
|
||
Right now we actually do not differentiate between platform objects of type Node
and Element
specifically.
Assignee | ||
Comment 4•7 months ago
|
||
I filed bug 1802137 which moves out the serialization of Shadow DOM related scenarios.
Assignee | ||
Comment 5•7 months ago
|
||
Assignee | ||
Comment 6•7 months ago
|
||
Depends on D163004
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4d7899fd983b [remote] Add support for serialization of platform objects of type Node. r=webdriver-reviewers,jdescottes,jgraham https://hg.mozilla.org/integration/autoland/rev/17958bffdfcf [wdspec] Improve tests for serialization of platform objects of type Node. r=webdriver-reviewers,jdescottes,jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37397 for changes under testing/web-platform/tests
Updated•6 months ago
|
Comment 9•6 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4d7899fd983b
https://hg.mozilla.org/mozilla-central/rev/17958bffdfcf
Upstream PR merged by jgraham
Updated•5 months ago
|
Description
•