rem: var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI); uri.spec = selectedItem.label; 
add: var uri = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) .newURI(selectedItem.label, null, null);  
context: function whitelistSite(){  var selectedItem = gSiteBox.selectedItems[0];  if (!selectedItem)    return;  var selectedIndex = gSiteBox.getIndexOfItem(selectedItem);  var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI);  uri.spec = selectedItem.label;  permissionmanager.add(uri, "popup", nsIPermissionManager.ALLOW_ACTION);  gSiteBox.removeChild(selectedItem);  if (gSiteBox.getRowCount() == 0) {    // close if there are no other sites to whitelist    window.close();    return;  }  // make sure a site is selected  if (selectedIndex > gSiteBox.getRowCount() - 1)    selectedIndex -= 1;  gSiteBox.selectedIndex = selectedIndex;  document.documentElement.getButton("accept").focus()}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1ba440ea0eec2fba44c3a7d090114779a2547119/pageReport.js/clean/browser/base/content/pageReport.js