diff options
-rw-r--r-- | components/webdriver_server/actions.rs | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/components/webdriver_server/actions.rs b/components/webdriver_server/actions.rs index cde418f920c..f33310ac001 100644 --- a/components/webdriver_server/actions.rs +++ b/components/webdriver_server/actions.rs @@ -328,15 +328,6 @@ impl Handler { _ => unreachable!(), }; - session.input_cancel_list.borrow_mut().push(ActionSequence { - id: source_id.into(), - actions: ActionsType::Key { - actions: vec![KeyActionItem::Key(KeyAction::Up(KeyUpAction { - value: action.value.clone(), - }))], - }, - }); - let keyboard_event = key_input_state.dispatch_keydown(raw_key); // Step 12 @@ -360,15 +351,6 @@ impl Handler { _ => unreachable!(), }; - session.input_cancel_list.borrow_mut().push(ActionSequence { - id: source_id.into(), - actions: ActionsType::Key { - actions: vec![KeyActionItem::Key(KeyAction::Up(KeyUpAction { - value: action.value.clone(), - }))], - }, - }); - if let Some(keyboard_event) = key_input_state.dispatch_keyup(raw_key) { // Step 12 let cmd_msg = WebDriverCommandMsg::KeyboardAction( @@ -396,25 +378,6 @@ impl Handler { } pointer_input_state.pressed.insert(action.button); - session.input_cancel_list.borrow_mut().push(ActionSequence { - id: source_id.into(), - actions: ActionsType::Pointer { - parameters: PointerActionParameters { - pointer_type: match pointer_input_state.subtype { - PointerType::Mouse => PointerType::Mouse, - PointerType::Pen => PointerType::Pen, - PointerType::Touch => PointerType::Touch, - }, - }, - actions: vec![PointerActionItem::Pointer(PointerAction::Up( - PointerUpAction { - button: action.button, - ..Default::default() - }, - ))], - }, - }); - let msg_id = self.current_action_id.get().unwrap(); let cmd_msg = WebDriverCommandMsg::MouseButtonAction( session.webview_id, @@ -445,25 +408,6 @@ impl Handler { } pointer_input_state.pressed.remove(&action.button); - session.input_cancel_list.borrow_mut().push(ActionSequence { - id: source_id.into(), - actions: ActionsType::Pointer { - parameters: PointerActionParameters { - pointer_type: match pointer_input_state.subtype { - PointerType::Mouse => PointerType::Mouse, - PointerType::Pen => PointerType::Pen, - PointerType::Touch => PointerType::Touch, - }, - }, - actions: vec![PointerActionItem::Pointer(PointerAction::Down( - PointerDownAction { - button: action.button, - ..Default::default() - }, - ))], - }, - }); - let msg_id = self.current_action_id.get().unwrap(); let cmd_msg = WebDriverCommandMsg::MouseButtonAction( session.webview_id, |