script: Stop copying the document URL.

This commit is contained in:
Patrick Walton 2015-07-28 19:08:35 -07:00
parent 4d1be2f56c
commit 5dce5f0c97
8 changed files with 19 additions and 16 deletions

View file

@ -1909,7 +1909,7 @@ impl ScriptTask {
window.r().set_fragment_name(final_url.fragment.clone());
// Notify devtools that a new script global exists.
self.notify_devtools(document.r().Title(), final_url, (id, None));
self.notify_devtools(document.r().Title(), (*final_url).clone(), (id, None));
}
}