Remove special cases when converting WebDriver types to Marionette
Categories
(Testing :: geckodriver, task, P3)
Tracking
(firefox150 fixed)
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: Sasha, Assigned: jgraham)
References
Details
(Whiteboard: [webdriver:m19][webdriver:external])
Attachments
(1 file)
In the scope of bug 1925272, we introduced a helper function, "serialize_to_map" to serialize the parameters when sending Marionette commands. We can now refactor other commands to use it instead of serializing for each command manually.
| Assignee | ||
Comment 1•2 months ago
|
||
We only need the special-case path in
MarionetteCommand::from_webdriver_message if we don't have a
marionettte_rs::webdriver::Command variant for the the marionette
command, which is generally only the case for complex commands where
defining parallel types was to much overhead.
| Assignee | ||
Comment 2•2 months ago
|
||
I started writing a comment about why I didn't like this idea, but ended up with a patch that does what I think we should do instead, which is to follow the pattern where try_convert_to_marionette (now just called to_marionette) handles all the input types, and we avoid having some that go through a different special cased codepath.
Updated•2 months ago
|
| Reporter | ||
Updated•2 months ago
|
Comment 4•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Description
•