diff --git a/mozilla/content/xml/document/src/nsXMLContentSink.cpp b/mozilla/content/xml/document/src/nsXMLContentSink.cpp index f2234ff19f7..450a918e55b 100644 --- a/mozilla/content/xml/document/src/nsXMLContentSink.cpp +++ b/mozilla/content/xml/document/src/nsXMLContentSink.cpp @@ -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;