The XUL content sink doesn't block the parser when loading stylesheets and hasn't for six months! Ack ack ack ack ack! Bug 102114. r=jag, sr=brendan

git-svn-id: svn://10.0.0.236/trunk@107272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2001-11-03 23:41:10 +00:00
parent b465e82eda
commit d8f790f6f5

View File

@@ -965,9 +965,11 @@ XULContentSinkImpl::AddProcessingInstruction(const nsIParserNode& aNode)
nsAutoString alternate;
nsParserUtils::GetQuotedAttributeValue(text, NS_ConvertASCIItoUCS2("alternate"), alternate);
ProcessStyleLink(nsnull /* XXX need a node here */,
nsresult rv = ProcessStyleLink(nsnull /* XXX need a node here */,
href, alternate.EqualsWithConversion("yes"), /* XXX ignore case? */
title, type, media);
if (NS_FAILED(rv))
return rv; // Important! A failure can indicate that the parser should block!
}
return NS_OK;