diff options
author | James Graham <james@hoppipolla.co.uk> | 2015-04-28 18:16:23 +0100 |
---|---|---|
committer | James Graham <james@hoppipolla.co.uk> | 2015-05-14 10:59:10 +0100 |
commit | 28ac0abf6a1aeb8540d1b41526c0fccffa749ce9 (patch) | |
tree | 96383acf89c717f3ad3756865c6a515dba45758d /components/script/webdriver_handlers.rs | |
parent | 7e022b25a8ab87897180dcf1b6aff8d9b57adcb4 (diff) | |
download | servo-28ac0abf6a1aeb8540d1b41526c0fccffa749ce9.tar.gz servo-28ac0abf6a1aeb8540d1b41526c0fccffa749ce9.zip |
Make WebDriver Get() command wait on pages loading before returning.
This makes using WebDriver significantly less racy. Also
refactors the message structure a little
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index 55525455e10..cdaea5f5fb3 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -35,7 +35,7 @@ fn find_node_by_unique_id(page: &Rc<Page>, pipeline: PipelineId, node_id: String None } -pub fn handle_evaluate_js(page: &Rc<Page>, pipeline: PipelineId, eval: String, reply: Sender<Result<EvaluateJSReply, ()>>) { +pub fn handle_execute_script(page: &Rc<Page>, pipeline: PipelineId, eval: String, reply: Sender<Result<EvaluateJSReply, ()>>) { let page = get_page(&*page, pipeline); let window = page.window().root(); let cx = window.r().get_cx(); |