rem: var dataObject = win.hPrefWindow.wsm.dataManager.pageData[window.location.href]; 
add: var dataObject = win.hPrefWindow.wsm.dataManager.pageData[window.location.href].userData; 
context: function loadPermissions() {  if (!permBundle)    permBundle = document.getElementById("permBundle");  if (!permissionsTree)    permissionsTree = document.getElementById("permissionsTree");  var win;  if ('opener' in window && window.opener)    win = window.opener.top;  else    win = window.top;  var dataObject = win.hPrefWindow.wsm.dataManager.pageData[window.location.href];  // load permissions into a table  if (!('permissions' in dataObject)) {    var enumerator = permissionmanager.enumerator;    var count = 0;    while (enumerator.hasMoreElements()) {      var nextPermission = enumerator.getNext();      nextPermission = nextPermission.QueryInterface(Components.interfaces.nsIPermission);      if (nextPermission.type == permType) {        var host = nextPermission.host;        var capability = ( nextPermission.capability == nsIPermissionManager.ALLOW_ACTION ) ? true : false;        permissions[count] = new Permission(count++, host,                         (host.charAt(0)==".") ? host.substring(1,host.length) : host,                         nextPermission.type,                         permBundle ? permBundle.getString(capability?"can":"cannot") : "", nextPermission.capability);      }    }  }  permissionsTreeView.rowCount = permissions.length;  // sort and display the table  permissionsTree.treeBoxObject.view = permissionsTreeView;  PermissionColumnSort('rawHost', false);  // disable "remove all" button if there are none  document.getElementById("removeAllPermissions").disabled = permissions.length == 0;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e574d3ce97487b5e3cf094d3df0cb8ea87311536/permissions.js/clean/browser/components/prefwindow/content/permissions.js