Skip to content
Permalink
Browse files

abort parser, if any, when pipeline exits

  • Loading branch information
gterzian committed Nov 21, 2019
1 parent d553158 commit 1fab2416d7d6036399e3581419252d79a88b8c37
Showing with 6 additions and 0 deletions.
  1. +6 −0 components/script/script_thread.rs
@@ -2876,6 +2876,12 @@ impl ScriptThread {
}
}

// Abort the parser, if any,
// to prevent any further incoming networking messages from being handled.
if let Some(parser) = document.get_current_parser() {
parser.abort();
}

// We discard the browsing context after requesting layout shut down,
// to avoid running layout on detached iframes.
let window = document.window();

0 comments on commit 1fab241

Please sign in to comment.
You can’t perform that action at this time.