From e16a0cb47a79506eb1d253b20197393131ef4ab6 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 16 Jan 2012 11:15:29 -0500 Subject: [PATCH] Enable JavaScript in hidden browsers. This fixes http://forums.zotero.org/discussion/21381/ (which occurs because document.domain differs even though the origin is the same) and is consistent with the behavior of the connectors. --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 4cc1c555a..6e47f5527 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -2396,7 +2396,7 @@ Zotero.Browser = new function() { hiddenBrowser.docShell.allowAuth = false; hiddenBrowser.docShell.allowDNSPrefetch = false; hiddenBrowser.docShell.allowImages = false; - hiddenBrowser.docShell.allowJavascript = false; + hiddenBrowser.docShell.allowJavascript = true; hiddenBrowser.docShell.allowMetaRedirects = false; hiddenBrowser.docShell.allowPlugins = false; Zotero.debug("created hidden browser ("