diff --git a/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp b/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp --- a/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp +++ b/xpcom/reflect/xptinfo/src/xptiInterfaceInfoManager.cpp @@ -628,20 +628,17 @@ IndexOfDirectoryOfFile(nsISupportsArray* aSearchPath->Count(&count); NS_ASSERTION(count, "broken search path! bad count"); for(PRUint32 i = 0; i < count; i++) { nsCOMPtr current; aSearchPath->QueryElementAt(i, NS_GET_IID(nsIFile), getter_AddRefs(current)); NS_ASSERTION(current, "broken search path! bad element"); - // nsIFile::Equals basically compares path strings so normalize - // before the comparison. - parent->Normalize(); - current->Normalize(); + PRBool same; if (NS_SUCCEEDED(parent->Equals(current, &same)) && same) return (int) i; } } NS_ERROR("file not in search directory!"); return -1; }