rem: if (isImages) { 
add: if (dialogType == cookieType) { canStr="can"; cannotStr="cannot"; } else if (dialogType == imageType) { 
context: function loadPermissions() {  // load permissions into a table  var enumerator = permissionmanager.enumerator;  var count = 0;  var contentStr;  var canStr, cannotStr;  if (isImages) {    canStr="canImages";    cannotStr="cannotImages";  } else {    canStr="can";    cannotStr="cannot";  }  while (enumerator.hasMoreElements()) {    var nextPermission = enumerator.getNext();    nextPermission = nextPermission.QueryInterface(Components.interfaces.nsIPermission);    if (nextPermission.type == (isImages ? imageType : cookieType)) {      var host = nextPermission.host;      permissions[count] =         new Permission(count++, host,                       (host.charAt(0)==".") ? host.substring(1,host.length) : host,                       nextPermission.type,                       cookieBundle.getString(nextPermission.capability?canStr:cannotStr));    }  }  permissionsTreeView.rowCount = permissions.length;  // sort and display the table  permissionsTree.treeBoxObject.view = permissionsTreeView;  PermissionColumnSort('rawHost');  // disable "remove all" button if there are no cookies/images  if (permissions.length == 0) {    document.getElementById("removeAllPermissions").setAttribute("disabled","true");  } else {    document.getElementById("removeAllPermissions").removeAttribute("disabled");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7c94daa5a998ed5e8d35a1d6325cbbba4a303987/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js