Enabling popup blocking from About Popups fails to set the preference.

thanks to neil for the fix.

r=mconnor, sr=dveditz
This commit is contained in:
sspitzer%mozilla.org 2006-05-17 02:37:15 +00:00
Родитель 620d3608b2
Коммит 00e602f3a4
1 изменённых файлов: 6 добавлений и 5 удалений

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

@ -45,7 +45,7 @@
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="popupsPanel"
onload="init()"
onload="parent.initPanel('chrome://cookie/content/pref-popups.xul');"
headertitle="&title;">
<script type="application/x-javascript">
@ -66,9 +66,7 @@
var permissionManager;
var ioService;
function init() {
parent.initPanel("chrome://cookie/content/pref-popups.xul");
function Startup() {
permissionManager = Components.classes["@mozilla.org/permissionmanager;1"]
.getService(Components.interfaces.nsIPermissionManager);
@ -94,8 +92,11 @@
document.getElementById("prefillWhitelist").setAttribute("value", false);
}
if (!parent.window.opener.location) // opened from About Popups menuitem
if (parent.queuedTag == "chrome://cookie/content/pref-popups.xul") {
// opened from About Popups menuitem
gPolicyCheckbox.checked = true;
parent.queuedTag = null;
}
setButtons();
}