www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 35c44b74705f8b829cbd5f6069f912ba7da2975b
parent 139036490c779feb20a515cb9fd5be67df6cc23f
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  6 Jul 2010 10:11:25 +0000

fix race condition


Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -463,10 +463,10 @@ var Zotero = new function(){ var dir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("CurProcD", Components.interfaces.nsILocalFile); - Zotero.debug(dir.path); return dir; } else { if(this.isFx4) { + while(!Zotero.addon) Zotero.mainThread.processNextEvent(true); var resourceURI = Zotero.addon.getResourceURI(); return resourceURI.QueryInterface(Components.interfaces.nsIFileURL).file; } else { @@ -797,6 +797,7 @@ var Zotero = new function(){ */ this.getInstalledExtensions = function () { if(this.isFx4) { + while(!Zotero.addons) Zotero.mainThread.processNextEvent(true); var installed = Zotero.addons; } else { var em = Components.classes["@mozilla.org/extensions/manager;1"].