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 2004-05-22 05:46:52 +00:00
Родитель 23965d12b5
Коммит f00543e3e2
2 изменённых файлов: 12 добавлений и 10 удалений

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

@ -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();
}

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

@ -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();
}