Improve translation on Nightly (with e10s disabled)

I haven't fully tested, but this fixes Google Scholar
This commit is contained in:
Simon Kornblith 2015-01-12 11:27:03 -05:00
parent e082a4fc28
commit 5c76347674

View file

@ -423,7 +423,7 @@ Zotero.Translate.SandboxManager = function(sandboxLocation) {
this.sandbox.XMLSerializer.__exposedProps__ = {"prototype":"r"}; this.sandbox.XMLSerializer.__exposedProps__ = {"prototype":"r"};
this.sandbox.XMLSerializer.prototype = {"__exposedProps__":{"serializeToString":"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); this._makeContentForwarder = Components.utils.evalInSandbox(expr, sandbox);
if (Zotero.platformMajorVersion >= 35) { if (Zotero.platformMajorVersion >= 35) {