From 5c76347674c026175e5b2f56fc887b48f3d55c4c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 12 Jan 2015 11:27:03 -0500 Subject: [PATCH] Improve translation on Nightly (with e10s disabled) I haven't fully tested, but this fixes Google Scholar --- chrome/content/zotero/xpcom/translation/translate_firefox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js index 21d190a31..4d7233848 100644 --- a/chrome/content/zotero/xpcom/translation/translate_firefox.js +++ b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -423,7 +423,7 @@ Zotero.Translate.SandboxManager = function(sandboxLocation) { this.sandbox.XMLSerializer.__exposedProps__ = {"prototype":"r"}; this.sandbox.XMLSerializer.prototype = {"__exposedProps__":{"serializeToString":"r"}}; - var expr = "(function(x) { return function() { this.args = arguments; return x.apply(this); }.bind({}); })"; + var expr = "(function(x) { return function() { this.args = arguments; return Function.prototype.apply.call(x, this); }.bind({}); })"; this._makeContentForwarder = Components.utils.evalInSandbox(expr, sandbox); if (Zotero.platformMajorVersion >= 35) {