88386 - Add null check to avoid crash because the parser could get released from underneath during location.replace
git-svn-id: svn://10.0.0.236/trunk@98299 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
73f263f784
commit
e2e9432efe
@ -4955,7 +4955,7 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
|
||||
|
||||
// If the act of insertion evaluated the script, we're fine.
|
||||
// Else, block the parser till the script has loaded.
|
||||
if (mNeedToBlockParser || !mParser->IsParserEnabled()) {
|
||||
if (mNeedToBlockParser || (mParser && !mParser->IsParserEnabled())) {
|
||||
return NS_ERROR_HTMLPARSER_BLOCK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user