diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 15822bb6e5c..8c07f26b6c2 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -8014,7 +8014,8 @@ nsDocShell::LoadHistoryEntry(nsISHEntry * aEntry, PRUint32 aLoadType) // Replace the current document with about:blank now to prevent // anything from the current document from leaking into any JavaScript // code in the URL. - rv = CreateAboutBlankContentViewer(nsnull); + nsCOMPtr prin = do_QueryInterface(owner); + rv = CreateAboutBlankContentViewer(prin); if (NS_FAILED(rv)) { // The creation of the intermittent about:blank content