From 60b6d1bb57e018526a8702bff66fce1d84644afe Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 16 Oct 2013 10:00:38 +0200 Subject: Issue #1071 - Ensure that Documents always have a non-null Window. --- src/components/script/script_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/script/script_task.rs') diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index ca3a04910bc..31a0bd6eb9d 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -717,7 +717,7 @@ impl ScriptTask { // Parse HTML. // // Note: We can parse the next document in parallel with any previous documents. - let document = HTMLDocument::new(Some(window)); + let document = HTMLDocument::new(window); let html_parsing_result = hubbub_html_parser::parse_html(cx.ptr, document, -- cgit v1.2.3