diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 6e9b9d569d2..96f13df2e24 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -808,10 +808,10 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer, ("nsWebShell::Embed: this=%p aDocViewer=%p aCommand=%s aExtraInfo=%p", this, aContentViewer, aCommand ? aCommand : "", aExtraInfo)); +/* nsCOMPtr oldMUDV; // // The following logic is mirrored in nsHTMLDocument::StartDocumentLoad! // - nsCOMPtr oldMUDV; if (mContentViewer) // && (eCharsetReloadInit!=mCharsetReloadState)) { // get any interesting state from the old content viewer // XXX: it would be far better to just reuse the document viewer , @@ -834,8 +834,10 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer, } } } +*/ + if (mContentViewer) { - if (oldMUDV) { + nsCOMPtr oldMUDV = do_QueryInterface(mContentViewer); PRUnichar *defaultCharset=nsnull; PRUnichar *forceCharset=nsnull; PRUnichar *hintCharset=nsnull; diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 6e9b9d569d2..96f13df2e24 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -808,10 +808,10 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer, ("nsWebShell::Embed: this=%p aDocViewer=%p aCommand=%s aExtraInfo=%p", this, aContentViewer, aCommand ? aCommand : "", aExtraInfo)); +/* nsCOMPtr oldMUDV; // // The following logic is mirrored in nsHTMLDocument::StartDocumentLoad! // - nsCOMPtr oldMUDV; if (mContentViewer) // && (eCharsetReloadInit!=mCharsetReloadState)) { // get any interesting state from the old content viewer // XXX: it would be far better to just reuse the document viewer , @@ -834,8 +834,10 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer, } } } +*/ + if (mContentViewer) { - if (oldMUDV) { + nsCOMPtr oldMUDV = do_QueryInterface(mContentViewer); PRUnichar *defaultCharset=nsnull; PRUnichar *forceCharset=nsnull; PRUnichar *hintCharset=nsnull;