fix Fx hang on extensions DB corruption

This commit is contained in:
Simon Kornblith 2011-02-08 11:59:00 +00:00
parent fe1ce60a46
commit 42761e8e0d

View file

@ -644,7 +644,7 @@ var Zotero = new function(){
return dir; return dir;
} else { } else {
if(this.isFx4) { if(this.isFx4) {
while(!Zotero.addon) Zotero.mainThread.processNextEvent(true); while(Zotero.addon === undefined) Zotero.mainThread.processNextEvent(true);
var resourceURI = Zotero.addon.getResourceURI(); var resourceURI = Zotero.addon.getResourceURI();
return resourceURI.QueryInterface(Components.interfaces.nsIFileURL).file; return resourceURI.QueryInterface(Components.interfaces.nsIFileURL).file;
} else { } else {
@ -1082,7 +1082,7 @@ var Zotero = new function(){
if(this.isFx4) { if(this.isFx4) {
if(!Zotero.addons) { if(!Zotero.addons) {
AddonManager.getAllAddons(function(addonList) { Zotero.addons = addonList; }); AddonManager.getAllAddons(function(addonList) { Zotero.addons = addonList; });
while(!Zotero.addons) Zotero.mainThread.processNextEvent(true); while(Zotero.addons === undefined) Zotero.mainThread.processNextEvent(true);
} }
var installed = Zotero.addons; var installed = Zotero.addons;
} else { } else {