From 849d206f87db18a7f3819502eba4025d18b01630 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 27 May 2016 04:37:06 -0400 Subject: [PATCH] Fix error running tests in translation-server --- .../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 index 36402e0a2f..dcd31cccb7 100644 --- 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; + } }; /**