rem:  alert(uri.host + gUPMsg.value); document.documentElement.getButton("accept").focus(); 
add: if (gSiteBox.getRowCount() == 0) {  window.close(); return; }   if (selectedIndex > gSiteBox.getRowCount() - 1) selectedIndex -= 1; gSiteBox.selectedIndex = selectedIndex; document.documentElement.getButton("accept").focus() 
context: function whitelistSite(){  var selectedItem = gSiteBox.selectedItems[0];  if (!selectedItem)    return;  var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI);  uri.spec = selectedItem.label;  permissionmanager.add(uri, nsIPermissionManager.POPUP_TYPE, nsIPermissionManager.ALLOW_ACTION);  gSiteBox.removeChild(selectedItem);  // XXXlocalize  alert(uri.host + gUPMsg.value);  document.documentElement.getButton("accept").focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8ba8fe40cdd1f1ec72c449c892206ce8becf0081/pageReport.js/clean/browser/base/content/pageReport.js