From 3d6cc7a63036870af98d73492edf7cb6c9e02420 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 1 Apr 2013 01:09:30 -0400 Subject: [PATCH] Fix translator error reports on Fx >20 Additional changes needed to abide by per-window private browsing settings --- chrome/content/zotero/xpcom/translation/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index dc07a9269b..ffde3fd48f 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -1815,7 +1815,7 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) { if(oldState == "translate" && errorString && !this._parentTranslator && this.translator.length && this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) { // Don't report failure if in private browsing mode - if(Zotero.isFx && !Zotero.isBookmarklet && !Zotero.isStandalone) { + if(Zotero.isFx && !Zotero.isBookmarklet && !Zotero.isStandalone && Components.classes["@mozilla.org/privatebrowsing;1"]) { var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] .getService(Components.interfaces.nsIPrivateBrowsingService); if (pbs.privateBrowsingEnabled) {