www

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

commit bc034089a6b668111c96cba89648cb47c97b6b8e
parent 2011a6122325bf9ae29cf3b3f9380feddba62e97
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 13 Jan 2017 02:36:04 -0500

Fix startup error loading Zotero service

https://forums.zotero.org/discussion/63869/5-0-beta-standalone-blank-ui-upon-restart
https://forums.zotero.org/discussion/63865/5-0-beta-library-wont-load

Adding include.js to hiddenWindow.xul in 66549f9e6d seems to have
created a race condition in which the Zotero service would fail on the
third startup after the JS cache was cleared (e.g., on a new version,
-purgecaches, or other changes in the profile). So, don't do that.

Hopefully this isn't caused by other uses (e.g., in plugins) of
include.js and was only happening because the hidden window is launched
concurrently with standalone.xul on macOS.

Diffstat:
Mchrome/content/zotero-platform/mac/standalone/menuOverlay.xul | 2+-
Mchrome/content/zotero/standalone/hiddenWindow.xul | 1-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul b/chrome/content/zotero-platform/mac/standalone/menuOverlay.xul @@ -83,7 +83,7 @@ <menuitem id="menu_preferences" label="&preferencesCmdMac.label;" key="key_preferencesCmdMac" - oncommand="Zotero.Utilities.Internal.openPreferences();"/> + oncommand="Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow('navigator:browser').Zotero.Utilities.Internal.openPreferences();"/> <menuitem id="menu_mac_services" label="&servicesMenuMac.label;"/> <menuitem id="menu_mac_hide_app" diff --git a/chrome/content/zotero/standalone/hiddenWindow.xul b/chrome/content/zotero/standalone/hiddenWindow.xul @@ -38,7 +38,6 @@ <window id="main-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/> - <script type="application/javascript" src="chrome://zotero/content/include.js"/> <commandset id="mainCommandSet"> <!--FILE--> <command id="cmd_quitApplication" oncommand="goQuitApplication();"/>