rem: case ALLOW_SESSION_ONLY: 
add: case nsICookiePermission.ACCESS_SESSION: 
context: function loadPermissions() {  // load permissions into a table  var enumerator = permissionmanager.enumerator;  var count = 0;  var contentStr;  var canStr, cannotStr, canSessionStr;  switch (dialogType) {    case cookieType:      canStr="can";      canSessionStr="canSession";      cannotStr="cannot";      break;    case imageType:      canStr="canImages";      cannotStr="cannotImages";      break;    case popupType:      canStr="canPopups";      cannotStr="cannotPopups";      break;    default:      return;  }  while (enumerator.hasMoreElements()) {    var nextPermission = enumerator.getNext();    nextPermission = nextPermission.QueryInterface(Components.interfaces.nsIPermission);    if (nextPermission.type == dialogType) {      var host = nextPermission.host;      var capability;      switch (nextPermission.capability) {        case nsIPermissionManager.ALLOW_ACTION:          capability = canStr;          break;        case nsIPermissionManager.DENY_ACTION:          capability = cannotStr;          break;        case ALLOW_SESSION_ONLY:          // we should only hit this for cookies          capability = canSessionStr;          break;        default:          return;      }      permissions[count] =         new Permission(count++, host,                       (host.charAt(0)==".") ? host.substring(1,host.length) : host,                       nextPermission.type,                       cookieBundle.getString(capability));    }  }  permissionsTreeView.rowCount = permissions.length;  // sort and display the table  permissionsTree.treeBoxObject.view = permissionsTreeView;  PermissionColumnSort('rawHost', false);  // 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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/183524ff31851a22bc83d2b3c9ac8f61298fc842/CookieViewer.js/buggy/extensions/wallet/cookieviewer/resources/content/CookieViewer.js