Closed Bug 1823464 Opened 3 months ago Closed 2 months ago

Handle DOMTokenList instances as collection

Categories

(Remote Protocol :: Marionette, enhancement, P1)

enhancement
Points:
1

Tracking

(firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [webdriver:m6], [wptsync upstream] [webdriver:relnote])

Attachments

(2 files)

Upstream PR: https://github.com/w3c/webdriver/pull/1728

Right now the DOMTokenList is not handled as collection and as such falls back to an arbitrary object.

The serialization results in an empty object to be returned because there are no enumerable properties. To actually allow Get Element Property to return the classList it needs to be handled as a collection.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
See Also: → 1823444
Blocks: webdriver
Points: --- → 1
Priority: -- → P1
Whiteboard: [webdriver:m6]
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/43f518df2e7f
[marionette] Handle DOMTokenList instances as collection. r=webdriver-reviewers,jdescottes
https://hg.mozilla.org/integration/autoland/rev/77479cf002be
[wdspec] Improve serialization tests for DOMTokenList. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39128 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m6] → [webdriver:m6], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Upstream PR merged by moz-wptsync-bot
Whiteboard: [webdriver:m6], [wptsync upstream] → [webdriver:m6], [wptsync upstream] [webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.