function onPopupWindow(aEvent) { 
function onPopupWindow(aEvent) { 
function onPopupWindow(aEvent) {  var firstPopup = pref.getBoolPref("privacy.popups.first_popup");  var blockingEnabled = pref.getBoolPref("dom.disable_open_during_load");  if (blockingEnabled) {    pref.setBoolPref("privacy.popups.first_popup", false);    return;  }  if (firstPopup) {     var showDialog = true;    var specialList = "";    try {      specialList = pref.getComplexValue("privacy.popups.default_whitelist",                                         Components.interfaces.nsIPrefLocalizedString).data;    }    catch(ex) { }    if (specialList) {      hosts = specialList.split(",");      var browser = getBrowserForDocument(aEvent.target);      if (!browser)        return;      var currentHost = browser.currentURI.hostPort;      for (var i = 0; i < hosts.length; i++) {        var nextHost = hosts[i];        if (nextHost == currentHost ||            "."+nextHost == currentHost.substr(currentHost.length - (nextHost.length+1))) {          showDialog = false;          break;        }             }    }    if (showDialog) {      window.openDialog("chrome://communicator/content/permissions/aboutPopups.xul", "",                        "chrome,centerscreen,dependent", true);      pref.setBoolPref("privacy.popups.first_popup", false);    }  }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/e144bb8fb7f5ff5802d29b37368baa096183f26f/navigator.js/buggy/suite/browser/navigator.js