зеркало из https://github.com/mozilla/pjs.git
r=dwitte, sr=darin, a=mkaply Fix AddObserver - P3P doesn't support weak references
This commit is contained in:
Родитель
d81bb00bab
Коммит
7cfd4e8f69
|
@ -60,7 +60,7 @@ nsP3PService::nsP3PService()
|
||||||
// we can live without a prefservice, so errors here aren't fatal
|
// we can live without a prefservice, so errors here aren't fatal
|
||||||
nsCOMPtr<nsIPrefBranchInternal> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID);
|
nsCOMPtr<nsIPrefBranchInternal> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID);
|
||||||
if (prefBranch) {
|
if (prefBranch) {
|
||||||
prefBranch->AddObserver(kCookiesP3PStringPref, this, PR_TRUE);
|
prefBranch->AddObserver(kCookiesP3PStringPref, this, PR_FALSE);
|
||||||
}
|
}
|
||||||
PrefChanged(prefBranch);
|
PrefChanged(prefBranch);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче