diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 2eb5e34ea..d1b5c69c9 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -979,6 +979,13 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) { // Report translaton failure if we failed if(this._currentState == "translate" && errorString && this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) { + // Don't report failure if in private browsing mode + var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] + .getService(Components.interfaces.nsIPrivateBrowsingService); + if (pbs.privateBrowsingEnabled) { + return; + } + var postBody = "id=" + encodeURIComponent(this.translator[0].translatorID) + "&lastUpdated=" + encodeURIComponent(this.translator[0].lastUpdated) + "&diagnostic=" + encodeURIComponent(Zotero.getSystemInfo()) +