commit 849d206f87db18a7f3819502eba4025d18b01630 parent 34208f92f7d1a3ee2fc29c35cd33f88a06c3c638 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 27 May 2016 04:37:06 -0400 Fix error running tests in translation-server Diffstat:
| M | chrome/content/zotero/tools/testTranslators/translatorTester.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -397,7 +397,10 @@ Zotero_TranslatorTester.prototype.fetchPageAndRunTest = function(test, testDoneC true ); - hiddenBrowser.docShell.allowMetaRedirects = true; + // No hidden browser returned from translation-server processDocuments() + if (hiddenBrowser) { + hiddenBrowser.docShell.allowMetaRedirects = true; + } }; /**