From 42761e8e0dc1d10b96ffec2aaccf8228b54a30c0 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 8 Feb 2011 11:59:00 +0000 Subject: [PATCH] fix Fx hang on extensions DB corruption --- chrome/content/zotero/xpcom/zotero.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index d93277556..38d3d5ddc 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -644,7 +644,7 @@ var Zotero = new function(){ return dir; } else { if(this.isFx4) { - while(!Zotero.addon) Zotero.mainThread.processNextEvent(true); + while(Zotero.addon === undefined) Zotero.mainThread.processNextEvent(true); var resourceURI = Zotero.addon.getResourceURI(); return resourceURI.QueryInterface(Components.interfaces.nsIFileURL).file; } else { @@ -1082,7 +1082,7 @@ var Zotero = new function(){ if(this.isFx4) { if(!Zotero.addons) { 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; } else {