bug 154485, p3p icon only takes effect on new windows, r=sgehani, sr=jag

This commit is contained in:
morse%netscape.com 2006-07-27 14:56:39 +00:00
Родитель 06bc5868f6
Коммит 3805bb48a2
1 изменённых файлов: 12 добавлений и 9 удалений

Просмотреть файл

@ -91,9 +91,12 @@
// make sure p3p dll exists, else we can't keep pref set
if (!("@mozilla.org/cookie-consent;1" in Components.classes)) {
gPref.setIntPref("network.cookie.cookieBehavior", 0);
} else {
}
}
// p3p pref is set so create an observer for changes in visibility of cookie icon
if ("@mozilla.org/cookie-consent;1" in Components.classes) {
// p3p dll exists so create an observer for changes in visibility of cookie icon
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.addObserver(cookieIconObserver, "cookieIcon", false);
@ -101,7 +104,7 @@
// we need to wait until window is created before displaying icon
addEventListener("load", listener, false);
}
}
]]>
</script>