bug 185073: mozilla crashes on http://www.kccommunications.com/
r=caillon sr=jst git-svn-id: svn://10.0.0.236/trunk@136157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -5601,7 +5601,11 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
|
||||
if (mCurrentContext->mStackPos <= 0) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
nsIHTMLContent* parent =
|
||||
|
||||
// Inserting the element into the document may execute a script.
|
||||
// This can potentially make the parent go away. So, hold
|
||||
// on to it till we are done.
|
||||
nsCOMPtr<nsIHTMLContent> parent =
|
||||
mCurrentContext->mStack[mCurrentContext->mStackPos - 1].mContent;
|
||||
nsCOMPtr<nsIHTMLContent> element;
|
||||
nsCOMPtr<nsINodeInfo> nodeInfo;
|
||||
|
||||
Reference in New Issue
Block a user