зеркало из https://github.com/mozilla/pjs.git
fixes bug 47041 "Unable to unregister an HTTP Notify listener"
r=bbaetz, sr=dougt, a=roc+moz
This commit is contained in:
Родитель
8f207684b7
Коммит
5072b1019e
|
@ -114,12 +114,16 @@ nsNetModRegEntry::Equals(nsINetModRegEntry* aEntry, PRBool *_retVal)
|
|||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
if (topic && PL_strcmp(topic, mTopic))
|
||||
if (topic && !PL_strcmp(topic, mTopic))
|
||||
{
|
||||
nsCOMPtr<nsINetNotify> aSyncProxy;
|
||||
rv = aEntry->GetSyncProxy(getter_AddRefs(aSyncProxy));
|
||||
aEntry->GetSyncProxy(getter_AddRefs(aSyncProxy));
|
||||
|
||||
// mSyncProxy may not be initialized yet.
|
||||
nsCOMPtr<nsINetNotify> mySyncProxy;
|
||||
GetSyncProxy(getter_AddRefs(mySyncProxy));
|
||||
|
||||
if(aSyncProxy == mSyncProxy)
|
||||
if(aSyncProxy == mySyncProxy)
|
||||
{
|
||||
*_retVal = PR_TRUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче