Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@183821 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -210,9 +210,8 @@ void txMozillaXMLOutput::endDocument()
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(mDocument);
|
||||
nsIScriptGlobalObject *sgo = doc->GetScriptGlobalObject();
|
||||
if (sgo) {
|
||||
nsCOMPtr<nsIDocShell> docShell;
|
||||
sgo->GetDocShell(getter_AddRefs(docShell));
|
||||
nsCOMPtr<nsIRefreshURI> refURI = do_QueryInterface(docShell);
|
||||
nsCOMPtr<nsIRefreshURI> refURI =
|
||||
do_QueryInterface(sgo->GetDocShell());
|
||||
if (refURI) {
|
||||
refURI->SetupRefreshURIFromHeader(doc->GetBaseURI(),
|
||||
mRefreshString);
|
||||
|
||||
Reference in New Issue
Block a user