rem: LOG.debug("Page load location=" + self.getCurrentWindow(true).location); 
add: if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } 
context:     this.recordPageLoad = function() {        LOG.debug("Page load detected");        try {            LOG.debug("Page load location=" + self.getCurrentWindow(true).location);        } catch (e) {            LOG.error("Caught an exception attempting to log location; this should get noticed soon!");            LOG.exception(e);            self.pageLoadError = e;            return;        }        self.currentPage = null;        self.newPageLoaded = true;    };
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/4e0a02c1c4c22cfcb651a4876c917b70f01b9d82/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js