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