bug 156523, don't load alternate XSLT stylesheets, r=sicking, sr=heikki
git-svn-id: svn://10.0.0.236/trunk@128440 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -678,6 +678,10 @@ nsXMLContentSink::ProcessStyleLink(nsIContent* aElement,
|
||||
if (aType.EqualsIgnoreCase(kXSLType) ||
|
||||
aType.EqualsIgnoreCase(kXMLTextContentType) ||
|
||||
aType.EqualsIgnoreCase(kXMLApplicationContentType)) {
|
||||
if (aAlternate) {
|
||||
// don't load alternate XSLT
|
||||
return NS_OK;
|
||||
}
|
||||
// LoadXSLStyleSheet needs a mWebShell.
|
||||
if (!mWebShell)
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user