Bug #126981 --> make HTML anchors work again by reversing the logic on an if clause.

r=sspitzer
sr=alecf
a=shaver
This commit is contained in:
mscott@netscape.com
2002-02-21 23:16:57 +00:00
parent f89481b3a2
commit 409b8b904c

View File

@@ -4971,7 +4971,7 @@ nsDocShell::ScrollIfAnchor(nsIURI * aURI, PRBool * aWasAnchor)
// This means that comparing "http://www.ABC.com/" to "http://www.abc.com/"
// will fail this test.
if (Substring(currentLeftStart, currentLeftEnd).Equals(sNewLeft)) {
if (!Substring(currentLeftStart, currentLeftEnd).Equals(sNewLeft)) {
return NS_OK; // URIs not the same
}