Closed Bug 1832792 Opened 1 year ago Closed 3 months ago

Update RemoteValue deserialization methods to have `serializedValue` as first argument

Categories

(Remote Protocol :: WebDriver BiDi, task, P3)

task

Tracking

(firefox124 fixed)

RESOLVED FIXED
124 Branch
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.

Mentor: hskupin
Priority: -- → P3
Whiteboard: [lang=js]
Assignee: nobody → jing.harrell

Hi, I would like to work on this ticket and I'll submit a patch soon. Thank you.

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

Flags: needinfo?(hskupin)

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.

Flags: needinfo?(hskupin)

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.

Flags: needinfo?(hskupin)
Blocks: 1837925

(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!

Flags: needinfo?(hskupin)
Status: NEW → ASSIGNED

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

Flags: needinfo?(hskupin)

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.

Flags: needinfo?(hskupin)
Attachment #9377493 - Attachment description: WIP: Bug 1832792 - Update RemoteValue deserialization methods to have `serializedValue` as first argument → Bug 1832792 - Update RemoteValue deserialization methods to have `serializedValue` as first argument r?whimboo
Attachment #9377493 - Attachment description: Bug 1832792 - Update RemoteValue deserialization methods to have `serializedValue` as first argument r?whimboo → Bug 1832792 - [remote] Update RemoteValue deserialization methods to have `serializedValue` as first argument r?whimboo
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/840505abaf56
[remote] Update RemoteValue deserialization methods to have `serializedValue` as first argument r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

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.

Whiteboard: [lang=js] → [lang=js][webdriver:m10:external]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: