Improve translation on Nightly (with e10s disabled)
I haven't fully tested, but this fixes Google Scholar
This commit is contained in:
parent
e082a4fc28
commit
5c76347674
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue