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.

This commit is contained in:
nisheeth@netscape.com
1999-07-15 23:17:29 +00:00
parent 24f4c55e1b
commit 80f65ef3bf
2 changed files with 4 additions and 2 deletions

View File

@@ -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<nsIDocumentViewer> docViewer;