Fix processDocuments for Fx 17

This commit is contained in:
Simon Kornblith 2012-10-29 18:02:04 -04:00
parent 7d2c4e6b2d
commit 52f4bd8f67

View File

@ -533,8 +533,9 @@ Zotero.HTTP = new function() {
* @inner
*/
var onLoad = function() {
var doc = hiddenBrowser.contentDocument,
url = doc.location.href.toString();
var doc = hiddenBrowser.contentDocument;
if(!doc) return;
var url = doc.location.href.toString();
if(url == "about:blank") return;
if(doc.readyState === "loading" && firedLoadEvent < 120) {
// Try again in a second