rem:  var list            = cookieviewer.GetPermissionValue(0); var BREAK           = list.substring(0,1); permissionList  = list.split(BREAK); CreatePermissionList(); for(var i = 0; i < permissions.length; i++) { var contentStr; var domain = permissions[i].domain; if(domain.charAt(0) == ".") domain = domain.substring(1,domain.length); if(permissions[i].type == "+") 
add: 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) == ".") { host = host.substring(1,host.length); } if(capability) { 
context: function loadPermissions(){  // get permissions into an array  var list            = cookieviewer.GetPermissionValue(0);  var BREAK           = list.substring(0,1);  permissionList  = list.split(BREAK);  CreatePermissionList();   // builds an object array from permissionstream  for(var i = 0; i < permissions.length; i++)  {    var contentStr;    var domain = permissions[i].domain;    if(domain.charAt(0) == ".")   // get rid of the ugly dot on the start of some domains      domain = domain.substring(1,domain.length);    if(permissions[i].type == "+")      contentStr = bundle.GetStringFromName("can");    else if(permissions[i].type == "-")      contentStr = bundle.GetStringFromName("cannot");    AddItem("permissionslist",[domain,contentStr],"permtree_",permissions[i].number)  }  if (permissions.length == 0) {    document.getElementById("removeAllPermissions").setAttribute("disabled","true");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4ac856f9884e64aa0c425345b3f61ee61c431b8b/CookieViewer.js/clean/extensions/wallet/cookieviewer/CookieViewer.js