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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user