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:
axel%pike.org
2002-08-29 06:53:59 +00:00
parent 9c60a13127
commit f078dbeb93

View File

@@ -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;