aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-04-28 18:16:23 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-05-14 10:59:10 +0100
commit28ac0abf6a1aeb8540d1b41526c0fccffa749ce9 (patch)
tree96383acf89c717f3ad3756865c6a515dba45758d /components/script/webdriver_handlers.rs
parent7e022b25a8ab87897180dcf1b6aff8d9b57adcb4 (diff)
downloadservo-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.rs2
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();