fix Fx hang on extensions DB corruption
This commit is contained in:
parent
fe1ce60a46
commit
42761e8e0d
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue