bug 106914, unable to close cookie/image manager dialog by pressing OK, r=jag, sr=alecf

This commit is contained in:
morse%netscape.com 2001-10-29 23:09:13 +00:00
Родитель aa0a1f2c8a
Коммит 7bbe9643c9
1 изменённых файлов: 5 добавлений и 6 удалений

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

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