add: LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); 
context: var BrowserBot = function(topLevelApplicationWindow) {    this.topWindow = topLevelApplicationWindow;    // the buttonWindow is the Selenium window    // it contains the Run/Pause buttons... this should *not* be the AUT window    // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad.    // Change this!!!    this.buttonWindow = this.topWindow;    // not sure what this is used for    this.currentPage = null;    this.currentWindow = this.topWindow;    this.currentWindowName = null;        this.altKeyDown = false;    this.controlKeyDown = false;    this.shiftKeyDown = false;    this.modalDialogTest = null;    this.recordedAlerts = new Array();    this.recordedConfirmations = new Array();    this.recordedPrompts = new Array();    this.openedWindows = {};    this.nextConfirmResult = true;    this.nextPromptResult = '';    this.newPageLoaded = false;    this.pageLoadError = null;    this.uniqueId = new Date().getTime();    this.pollingForLoad = new Object();    this.windowPollers = new Array();    var self = this;    this.recordPageLoad = function() {        LOG.debug("Page load detected");        try {            LOG.debug("Page load location=" + self.getCurrentWindow(true).location);        } catch (e) {            self.pageLoadError = e;            return;        }        self.currentPage = null;        self.newPageLoaded = true;    };    this.isNewPageLoaded = function() {        if (this.pageLoadError) {            var e = this.pageLoadError;            this.pageLoadError = null;            throw e;        }        return self.newPageLoaded;    };};
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/476ccd842ee26de6c101e6581d2a0f5bb251d2f6/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js