diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js index 7e282ecbb..2e66d5f9d 100644 --- a/chrome/content/zotero/xpcom/translation/translate_firefox.js +++ b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -368,7 +368,16 @@ Zotero.Translate.DOMWrapper = new function() { */ Zotero.Translate.SandboxManager = function(sandboxLocation) { // sandboxLocation = Components.classes["@mozilla.org/systemprincipal;1"].createInstance(Components.interfaces.nsIPrincipal); - var sandbox = this.sandbox = new Components.utils.Sandbox(sandboxLocation, {wantComponents:false, wantGlobalProperties:["XMLHttpRequest"]}); + var sandbox = this.sandbox = new Components.utils.Sandbox( + sandboxLocation, + { + wantComponents: false, + wantGlobalProperties: [ + 'atob', + 'XMLHttpRequest' + ] + } + ); this.sandbox.Zotero = {}; // import functions missing from global scope into Fx sandbox