aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-07-16 00:01:47 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-07-21 20:21:35 +0100
commitdc49f4fda603e56ba214a3f110bb2c12968431d0 (patch)
tree1dd83b848254477624c3fd1f3aa62ba20b5ae1c1 /src/components/script/script_task.rs
parent71a869284e066c8e8afdf1731fdc1bc3a71d604b (diff)
downloadservo-dc49f4fda603e56ba214a3f110bb2c12968431d0.tar.gz
servo-dc49f4fda603e56ba214a3f110bb2c12968431d0.zip
Start dogfooding rust-url. Fix #1673.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index 4b86bafcdde..87ae7a4752e 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -590,7 +590,7 @@ impl ScriptTask {
let global_obj = window.reflector().get_jsobject();
//FIXME: this should have some kind of error handling, or explicitly
// drop an exception on the floor.
- match cx.evaluate_script(global_obj, file.data.clone(), file.url.to_str(), 1) {
+ match cx.evaluate_script(global_obj, file.data.clone(), file.url.serialize(), 1) {
Ok(_) => (),
Err(_) => println!("evaluate_script failed")
}