Responding to review comments.

This commit is contained in:
Alan Jeffrey 2017-05-26 12:42:45 -05:00
parent 79743b5358
commit 3f761bed53
4 changed files with 5 additions and 5 deletions

View file

@ -782,7 +782,8 @@ impl Handler {
let keys = try!(keycodes_to_keys(&keys.value).or_else(|_|
Err(WebDriverError::new(ErrorStatus::UnsupportedOperation, "Failed to convert keycodes"))));
// TODO: there's a race condition caused by these being two separate messages,
// 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.
let cmd_msg = WebDriverCommandMsg::SendKeys(browsing_context_id, keys);
self.constellation_chan.send(ConstellationMsg::WebDriverCommand(cmd_msg)).unwrap();