From 63d63ffe025da3541a8fa06b764720c275bc18a2 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Tue, 27 Jul 1999 21:21:13 +0000 Subject: [PATCH] Fix for bug 4559 in the Necko builds. Earlier this code change was made in code that affected non-Necko builds. git-svn-id: svn://10.0.0.236/trunk@41325 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 3 ++- mozilla/webshell/src/nsWebShell.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index a937193380d..d12116bb6e0 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1842,7 +1842,8 @@ nsWebShell::DoLoadURL(const nsString& aUrlSpec, // If it's a normal reload that uses the cache, look at the destination anchor // and see if it's an element within the current document #ifdef NECKO - if ((aType == nsIChannel::LOAD_NORMAL) && (nsnull != mContentViewer)) + if ((aType == nsIChannel::LOAD_NORMAL) && (nsnull != mContentViewer) && + (nsnull == aPostData)) #else if ((aType == nsURLReload || aType == nsURLReloadFromHistory) && (nsnull != mContentViewer) && (nsnull == aPostData)) diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index a937193380d..d12116bb6e0 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1842,7 +1842,8 @@ nsWebShell::DoLoadURL(const nsString& aUrlSpec, // If it's a normal reload that uses the cache, look at the destination anchor // and see if it's an element within the current document #ifdef NECKO - if ((aType == nsIChannel::LOAD_NORMAL) && (nsnull != mContentViewer)) + if ((aType == nsIChannel::LOAD_NORMAL) && (nsnull != mContentViewer) && + (nsnull == aPostData)) #else if ((aType == nsURLReload || aType == nsURLReloadFromHistory) && (nsnull != mContentViewer) && (nsnull == aPostData))