rem: params.location = content.location.href; 
add: params.location = errorDoc.location.href; 
context: function BrowserOnCommand(event) {        // Don't trust synthetic events    if (!event.isTrusted)      return;        // If the event came from an ssl error page, it is probably either the "Add    // Exception…" or "Get me out of here!" button    if (/^about:neterror\?e=nssBadCert/.test(event.originalTarget.ownerDocument.documentURI)) {      var ot = event.originalTarget;      var errorDoc = ot.ownerDocument;            if (ot == errorDoc.getElementById('exceptionDialogButton')) {        var params = { exceptionAdded : false };                try {          switch (gPrefService.getIntPref("browser.ssl_override_behavior")) {            case 2 : // Pre-fetch & pre-populate              params.prefetchCert = true;            case 1 : // Pre-populate              params.location = content.location.href;          }        } catch (e) {          Components.utils.reportError("Couldn't get ssl_override pref: " + e);        }                window.openDialog('chrome://pippki/content/exceptionDialog.xul',                          '','chrome,centerscreen,modal', params);                // If the user added the exception cert, attempt to reload the page        if (params.exceptionAdded)          content.location.reload();      }      else if (ot == errorDoc.getElementById('getMeOutOfHereButton')) {        // Redirect them to a known-functioning page, default start page        var prefs = Cc["@mozilla.org/preferences-service;1"]                    .getService(Ci.nsIPrefService).getDefaultBranch(null);        var url = "about:blank";        try {          url = prefs.getComplexValue("browser.startup.homepage",                                      Ci.nsIPrefLocalizedString).data;          // If url is a pipe-delimited set of pages, just take the first one.          if (url.indexOf("|") != -1)            url = url.split("|")[0];        } catch(e) {          Components.utils.reportError("Couldn't get homepage pref: " + e);        }        content.location = url;      }    }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/b5998a91522c494a098ac0d0a530350a6804880d/browser.js/clean/browser/base/content/browser.js