Update RemoteValue deserialization methods to have `serializedValue` as first argument
Categories
(Remote Protocol :: WebDriver BiDi, task, P3)
Tracking
(firefox124 fixed)
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: whimboo, Assigned: jing.harrell, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=js][webdriver:m10:external])
Attachments
(1 file)
All the deserialization helpers in RemoteValue.sys.mjs have the realm
as first argument whereby the WebDriver BiDi spec and the serialization code has the value
as first argument:
To deserialize local value given local protocol value, realm and session:
We should change the code to have serializedValue
as first argument instead.
Reporter | ||
Updated•2 years ago
|
Updated•1 year ago
|
Hi, I would like to work on this ticket and I'll submit a patch soon. Thank you.
Reporter | ||
Comment 2•1 year ago
|
||
This is great to hear! Let me know if you run into trouble. We are happy to help as well in the WebDriver channel on Matrix. Thanks!
Hi, should I also change the order of the arguments of the wrapper function in webdriver-bidi/modules/WindowGlobalBiDiModule.sys.mjs and all the places that import the module and call the deserialize function? Thanks
Reporter | ||
Comment 4•1 year ago
|
||
Yes, we should have as best a unique ordering of arguments (to also match the specification) across all the places where it is used. So please change them all. Thanks.
Hi Henrik, I'm almost done with the patch. I modified and ran the tests in remote/webdriver-bidi/test. Are there any other tests that I need to run? Thanks.
Reporter | ||
Comment 7•1 year ago
|
||
(In reply to Jing Zhu from comment #6)
Hi Henrik, I'm almost done with the patch. I modified and ran the tests in remote/webdriver-bidi/test. Are there any other tests that I need to run? Thanks.
Yes, there are tests as well under testing/web-platform/tests/webdriver/tests/bidi
that you would have to run. You can do that yourself or if the patch looks fine I can immediately create a try push to verify the changes. I'll have a look at your patch today. Thanks a lot for providing it!
Reporter | ||
Updated•1 year ago
|
Hi, I've ran the tests in testing/web-platform/tests/webdriver/tests/bidi and it passed. But I'm sorting some things out with my mercurial tree, can you hold off on the review for just a bit. Thank you
Reporter | ||
Comment 9•1 year ago
|
||
Sure. Right now the patch is still in WIP (work in progress) so I'll wait until you push with --no-wip
so it gets marked with review requested.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
bugherder |
Reporter | ||
Comment 12•1 year ago
|
||
Jing, thanks a lot for your contribution, and if you are interested to do more in our area just let us know what you are interested in. You can also find us in the WebDriver channel on Matrix.
Reporter | ||
Updated•1 year ago
|
Description
•