mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Don't overwrite redirected URL in script_task (fixes #3970)
This commit is contained in:
parent
2ffa845cf4
commit
d5f1bb2df5
1 changed files with 2 additions and 1 deletions
|
@ -751,7 +751,7 @@ impl ScriptTask {
|
|||
/// The entry point to document loading. Defines bindings, sets up the window and document
|
||||
/// objects, parses HTML and CSS, and kicks off initial layout.
|
||||
fn load(&self, pipeline_id: PipelineId, load_data: LoadData) {
|
||||
let url = load_data.url.clone();
|
||||
let mut url = load_data.url.clone();
|
||||
debug!("ScriptTask: loading {} on page {}", url, pipeline_id);
|
||||
|
||||
let page = self.page.borrow_mut();
|
||||
|
@ -818,6 +818,7 @@ impl ScriptTask {
|
|||
}
|
||||
|
||||
parse_html(&*page, *document, parser_input, self.resource_task.clone(), Some(load_data));
|
||||
url = page.get_url().clone();
|
||||
|
||||
document.set_ready_state(DocumentReadyStateValues::Interactive);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue