From 4ad87d9e797a3ab31c03c2450920293c8297ca6f Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Thu, 15 Jul 1999 23:17:29 +0000 Subject: [PATCH] Fix for bug 4559. We would scroll the document to the named anchor target when a named anchor was clicked even when form data needed to get submitted. Now, we go ahead and submit the form data. git-svn-id: svn://10.0.0.236/trunk@39572 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 aa5bddf0212..335dac6d21d 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1842,7 +1842,8 @@ nsWebShell::DoLoadURL(const nsString& aUrlSpec, #ifdef NECKO if ((aType == nsIChannel::LOAD_NORMAL) && (nsnull != mContentViewer)) #else - if ((aType == nsURLReload || aType == nsURLReloadFromHistory) && (nsnull != mContentViewer)) + if ((aType == nsURLReload || aType == nsURLReloadFromHistory) && + (nsnull != mContentViewer) && (nsnull == aPostData)) #endif { nsCOMPtr docViewer; diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index aa5bddf0212..335dac6d21d 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1842,7 +1842,8 @@ nsWebShell::DoLoadURL(const nsString& aUrlSpec, #ifdef NECKO if ((aType == nsIChannel::LOAD_NORMAL) && (nsnull != mContentViewer)) #else - if ((aType == nsURLReload || aType == nsURLReloadFromHistory) && (nsnull != mContentViewer)) + if ((aType == nsURLReload || aType == nsURLReloadFromHistory) && + (nsnull != mContentViewer) && (nsnull == aPostData)) #endif { nsCOMPtr docViewer;