Fix "Permission denied" scraping errors on Firefox 2 -- don't know why, don't really care

This commit is contained in:
Dan Stillman 2008-05-19 08:11:37 +00:00
parent 72e5c6c4d4
commit 48432e9fb5

View File

@ -770,7 +770,8 @@ Zotero.Utilities.HTTP.processDocuments = function(firstDoc, urls, processor, don
}
};
var init = function() {
hiddenBrowser.addEventListener("pageshow", onLoad, true);
var loadEvent = Zotero.isFx2 ? "load" : "pageshow";
hiddenBrowser.addEventListener(loadEvent, onLoad, true);
if (firstDoc) {
processor(firstDoc, doLoad);