diff options
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index cbe74aa1263..489e071908c 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -677,6 +677,7 @@ pub fn handle_focus_element( pipeline: PipelineId, element_id: String, reply: IpcSender<Result<(), ErrorStatus>>, + can_gc: CanGc, ) { reply .send( @@ -684,7 +685,7 @@ pub fn handle_focus_element( match node.downcast::<HTMLElement>() { Some(element) => { // Need a way to find if this actually succeeded - element.Focus(); + element.Focus(can_gc); Ok(()) }, None => Err(ErrorStatus::UnknownError), @@ -1072,6 +1073,7 @@ pub fn handle_element_click( pipeline: PipelineId, element_id: String, reply: IpcSender<Result<Option<String>, ErrorStatus>>, + can_gc: CanGc, ) { reply .send( @@ -1122,7 +1124,7 @@ pub fn handle_element_click( // Step 8.5 match parent_node.downcast::<HTMLElement>() { - Some(html_element) => html_element.Focus(), + Some(html_element) => html_element.Focus(can_gc), None => return Err(ErrorStatus::UnknownError), } |