aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r--components/script/webdriver_handlers.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs
index 79f0f502ae2..15b31ff63e7 100644
--- a/components/script/webdriver_handlers.rs
+++ b/components/script/webdriver_handlers.rs
@@ -182,6 +182,7 @@ pub fn handle_get_name(page: &Rc<Page>,
pub fn handle_get_url(page: &Rc<Page>,
_pipeline: PipelineId,
reply: IpcSender<Url>) {
- let url = page.document().r().url();
- reply.send(url).unwrap();
+ let document = page.document();
+ let url = document.r().url();
+ reply.send((*url).clone()).unwrap();
}