From dcb1d46f70adaf6dcc7340c8ec27f1bb0639bccb Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sun, 30 Jan 2005 20:45:46 +0000 Subject: [PATCH] Fix comparison of file:// uris. Bug 280206, r+sr=darin git-svn-id: svn://10.0.0.236/trunk@168531 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/base/src/nsStandardURL.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/netwerk/base/src/nsStandardURL.cpp b/mozilla/netwerk/base/src/nsStandardURL.cpp index 6a470d0c59c..8a44e5ea198 100644 --- a/mozilla/netwerk/base/src/nsStandardURL.cpp +++ b/mozilla/netwerk/base/src/nsStandardURL.cpp @@ -1499,7 +1499,10 @@ nsStandardURL::Equals(nsIURI *unknownOther, PRBool *result) // really failures, so propagate them to caller. *result = PR_FALSE; - if (!SegmentIs(mScheme, other->mSpec.get(), other->mScheme)) { + if (!SegmentIs(mScheme, other->mSpec.get(), other->mScheme) || + !SegmentIs(mRef, other->mSpec.get(), other->mRef) || + !SegmentIs(mParam, other->mSpec.get(), other->mParam) || + !SegmentIs(mQuery, other->mSpec.get(), other->mQuery)) { // No need to compare files -- these are different beasties return NS_OK; }