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
This commit is contained in:
bzbarsky%mit.edu
2005-01-30 20:45:46 +00:00
parent e3bddb2d84
commit dcb1d46f70

View File

@@ -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;
}