зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
6d0b282ac1
Коммит
fd10ca3854
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче