diff options
author | bors-servo <release+servo@mozilla.com> | 2013-10-16 02:37:09 -0700 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2013-10-16 02:37:09 -0700 |
commit | 509934cf65acb1061cf4b012556ff6782e3203c9 (patch) | |
tree | 4fe54c25f2996a480d55a69951dcd8ba75634e4b /src/components/script/script_task.rs | |
parent | c9c9eec3d8cdb68f43352b777c3b138c743bc103 (diff) | |
parent | 60b6d1bb57e018526a8702bff66fce1d84644afe (diff) | |
download | servo-509934cf65acb1061cf4b012556ff6782e3203c9.tar.gz servo-509934cf65acb1061cf4b012556ff6782e3203c9.zip |
auto merge of #1072 : Ms2ger/servo/crash-domparser, r=jdm
Turns out that documents without a window `fail!` a lot, because we need the `cx` all over.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, |