rem: if (image_permissions_count == 0) { document.getElementById("removeAllImages").setAttribute("disabled","true"); } 
context: function loadPermissions(){  var permissionString;  var permissionArray  = [];  var enumerator = permissionmanager.enumerator;  var contentStr;  while (enumerator.hasMoreElements()) {    var nextPermission = enumerator.getNext();    nextPermission = nextPermission.QueryInterface(Components.interfaces.nsIPermission);    var host = nextPermission.host;    var type = nextPermission.type;    var capability = nextPermission.capability;    if(host.charAt(0) == ".") {  // get rid of the ugly dot on the start of some domains      host = host.substring(1,host.length);    }    if (type == cookieType) {      contentStr = bundle.GetStringFromName(capability ? "can" : "cannot");      AddPermissionToList(cookie_permissions_count, host, type, capability);      AddItem("cookiePermList", [host, contentStr], "cookiepermtree_", cookie_permissions_count++);      if (cookie_permissions_count == 0) {        document.getElementById("removeAllPermissions").setAttribute("disabled","true");      }    } else if (type == imageType) {      contentStr = bundle.GetStringFromName(capability ? "canImages" : "cannotImages");      AddPermissionToList(image_permissions_count, host, type, capability);      AddItem("imagePermList", [host, contentStr], "imagepermtree_", image_permissions_count++);      if (image_permissions_count == 0) {        document.getElementById("removeAllImages").setAttribute("disabled","true");      }    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/91fadc25129bf76289af7857d436c38a6f927037/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js