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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user