mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
webdriver: Improve documentations for actions.rs
and update TODOs (#39391)
Add specification quote for each steps, remove some irrelevant TODO, and move function position closer to related function. Testing: No behaviour change --------- Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com> Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
2c8533f38e
commit
77ae3a0eb3
3 changed files with 166 additions and 134 deletions
|
@ -2134,17 +2134,12 @@ impl Handler {
|
|||
);
|
||||
self.browsing_context_script_command(cmd, VerifyBrowsingContextIsOpen::No)?;
|
||||
|
||||
// TODO: distinguish the not found and not focusable cases
|
||||
// File input and non-typeable form control should have
|
||||
// been handled in `webdriver_handler.rs`.
|
||||
if !wait_for_ipc_response(receiver)?.map_err(|error| WebDriverError::new(error, ""))? {
|
||||
return Ok(WebDriverResponse::Void);
|
||||
}
|
||||
|
||||
// TODO: there's a race condition caused by the focus command and the
|
||||
// send keys command being two separate messages,
|
||||
// so the constellation may have changed state between them.
|
||||
|
||||
// Step 10. Let input id be a the result of generating a UUID.
|
||||
let id = Uuid::new_v4().to_string();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue