diff --git a/mozilla/content/xslt/src/xslt/txMozillaXMLOutput.cpp b/mozilla/content/xslt/src/xslt/txMozillaXMLOutput.cpp index 480d61e1b41..7a011d62675 100644 --- a/mozilla/content/xslt/src/xslt/txMozillaXMLOutput.cpp +++ b/mozilla/content/xslt/src/xslt/txMozillaXMLOutput.cpp @@ -210,9 +210,8 @@ void txMozillaXMLOutput::endDocument() nsCOMPtr doc = do_QueryInterface(mDocument); nsIScriptGlobalObject *sgo = doc->GetScriptGlobalObject(); if (sgo) { - nsCOMPtr docShell; - sgo->GetDocShell(getter_AddRefs(docShell)); - nsCOMPtr refURI = do_QueryInterface(docShell); + nsCOMPtr refURI = + do_QueryInterface(sgo->GetDocShell()); if (refURI) { refURI->SetupRefreshURIFromHeader(doc->GetBaseURI(), mRefreshString);