From 41efac5a08a27438d8498529eb8e2dcc7f87ba6f Mon Sep 17 00:00:00 2001 From: "radha%netscape.com" Date: Wed, 5 Mar 2003 21:41:02 +0000 Subject: [PATCH] Patch to bug # 179633. Return the proper result from ScrollIfAnchor() to the caller to take care of traversals to invalid targets in a page. r=adamlock, sr=alecf git-svn-id: svn://10.0.0.236/trunk@138978 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 7f60ed607ce..65b8d014a5a 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -5800,10 +5800,10 @@ nsDocShell::ScrollIfAnchor(nsIURI * aURI, PRBool * aWasAnchor, PRUint32 aLoadTyp if (aLoadType == LOAD_HISTORY || aLoadType == LOAD_RELOAD_NORMAL) return rv; //An empty anchor. Scroll to the top of the page. - SetCurScrollPosEx(0, 0); + rv = SetCurScrollPosEx(0, 0); } - return NS_OK; + return rv; }