зеркало из https://github.com/mozilla/pjs.git
bug 106914, unable to close cookie/image manager dialog by pressing OK, r=jag, sr=alecf
This commit is contained in:
Родитель
aa0a1f2c8a
Коммит
7bbe9643c9
|
@ -510,10 +510,9 @@ function onOK(){
|
||||||
deletedCookies = gone_c.split(",");
|
deletedCookies = gone_c.split(",");
|
||||||
var cookieCount;
|
var cookieCount;
|
||||||
for (cookieCount=0; cookieCount<deletedCookies.length-1; cookieCount++) {
|
for (cookieCount=0; cookieCount<deletedCookies.length-1; cookieCount++) {
|
||||||
cookiemanager.remove(cookies[deletedCookies[cookieCount]].host,
|
var index = parseInt(deletedCookies[cookieCount]);
|
||||||
cookies[deletedCookies[cookieCount]].name,
|
cookiemanager.remove(cookies[index].host, cookies[index].name, cookies[index].path,
|
||||||
cookies[deletedCookies[cookieCount]].path,
|
document.getElementById("checkbox").checked);
|
||||||
document.getElementById("checkbox").checked);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var deletedCookiePermissions = [];
|
var deletedCookiePermissions = [];
|
||||||
|
@ -523,7 +522,7 @@ function onOK(){
|
||||||
cperm_count<deletedCookiePermissions.length-1;
|
cperm_count<deletedCookiePermissions.length-1;
|
||||||
cperm_count++) {
|
cperm_count++) {
|
||||||
permissionmanager.remove
|
permissionmanager.remove
|
||||||
(cpermissions[deletedCookiePermissions[cperm_count]].host, cookieType);
|
(cpermissions[parseInt(deletedCookiePermissions[cperm_count])].host, cookieType);
|
||||||
}
|
}
|
||||||
|
|
||||||
var deletedImagePermissions = [];
|
var deletedImagePermissions = [];
|
||||||
|
@ -533,7 +532,7 @@ function onOK(){
|
||||||
iperm_count<deletedImagePermissions.length-1;
|
iperm_count<deletedImagePermissions.length-1;
|
||||||
iperm_count++) {
|
iperm_count++) {
|
||||||
permissionmanager.remove
|
permissionmanager.remove
|
||||||
(ipermissions[deletedImagePermissions[iperm_count]].host, imageType);
|
(ipermissions[parseInt(deletedImagePermissions[iperm_count])].host, imageType);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче