rem: function loadPermissions() { CreatePermissionList(); var permissionlist = document.getElementById("permissionslist"); for(i = 0; i < permissions.length; i++) { var item  = document.createElement("treeitem"); var row   = document.createElement("treerow");  var cell  = document.createElement("treecell"); var domain = permissions[i].domain; if(domain.charAt(0) == ".") domain = domain.substring(1,domain.length); var text = document.createTextNode(domain); cell.appendChild(text); row.appendChild(cell);  var cell  = document.createElement("treecell");  if(permissions[i].type == "+") contentStr = bundle.GetStringFromName("can"); else if(permissions[i].type == "-") contentStr = bundle.GetStringFromName("cannot"); contentStr = document.createTextNode(contentStr); var content = document.createTextNode(contentStr); cell.appendChild(contentStr);  row.appendChild(cell); item.appendChild(row); item.setAttribute("id","permtree_" + i); permissionlist.appendChild(item); } } 
add: function loadPermissions(){ cookie_mode = 1; top.frames[index_frame].document.open(); top.frames[index_frame].document.write( "<body bgcolor='#c0c0c0'>" + "<table border='0' width='100%'>" + "<tr>" + "<td align='center' valign='middle' bgcolor='#c0c0c0'>" + "<a onclick='top.loadCookies();' href=''>" + "<font size='2'>" + cookiesTab + "</font>" + "</a>" + "</td>" + "<td align='center' valign='middle' bgcolor='#ffffff'>" + "<font size='2' color='#666666'>" + "<b>" + permissionsTab + "</b>" + "</font>" + "</td>" + "<td>&nbsp;&nbsp;&nbsp;</td>" + "</tr>" + "</table>" + "</body>" ); top.frames[index_frame].document.close();  top.frames[title_frame].document.open(); top.frames[title_frame].document.write ("&nbsp;" + permissionsStored + ""); top.frames[title_frame].document.close();  top.frames[prop_frame].document.open(); top.frames[prop_frame].document.close();  loadPermissionsList(); } 
context: function loadPermissions(){  CreatePermissionList();   // builds an object array from permissionstream  var permissionlist = document.getElementById("permissionslist");  for(i = 0; i < permissions.length; i++)  {    var item  = document.createElement("treeitem");    var row   = document.createElement("treerow");    // create permission domain cell    var cell  = document.createElement("treecell");    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);    var text = document.createTextNode(domain);    cell.appendChild(text);    row.appendChild(cell);    // create permission status cell    var cell  = document.createElement("treecell");    // TODO: (possibly) allow user to edit +/- settings    if(permissions[i].type == "+")      contentStr = bundle.GetStringFromName("can");    else if(permissions[i].type == "-")      contentStr = bundle.GetStringFromName("cannot");        contentStr = document.createTextNode(contentStr);    var content = document.createTextNode(contentStr);    cell.appendChild(contentStr);        row.appendChild(cell);    item.appendChild(row);    item.setAttribute("id","permtree_" + i);    permissionlist.appendChild(item);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c6fa5d1ce98e2ddef2cf4037c1a1113c104f5980/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js