Remove the url from the InputUrl variant.

This url is the pre-redirect url, which is not particularly meaningful, and it
is used only in a panic message.
This commit is contained in:
Ms2ger 2014-12-09 01:07:13 +01:00
parent e76c3386ce
commit 0fc65d4088
2 changed files with 7 additions and 7 deletions

View file

@ -748,7 +748,7 @@ impl ScriptTask {
// Wait for the LoadResponse so that the parser knows the final URL.
let (input_chan, input_port) = channel();
self.resource_task.send(Load(NetLoadData {
url: url.clone(),
url: url,
method: load_data.method,
headers: load_data.headers,
data: load_data.data,
@ -773,7 +773,7 @@ impl ScriptTask {
*page.mut_url() = Some((base_url.clone(), true));
}
(InputUrl(url.clone(), load_response), base_url)
(InputUrl(load_response), base_url)
} else {
let evalstr = load_data.url.non_relative_scheme_data().unwrap();
let jsval = window.evaluate_js_with_result(evalstr);