commit 3d6cc7a63036870af98d73492edf7cb6c9e02420
parent e2a68c747c8b2efafaca91572eec2a1d36f50910
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 1 Apr 2013 01:09:30 -0400
Fix translator error reports on Fx >20
Additional changes needed to abide by per-window private browsing settings
Diffstat:
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
@@ -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) {