mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 21:44:11 +01:00
Do something remotely reasonable where designMode documents are concerned. Some fixes for evalInSandbox problems in recent nightlies.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
(function () {
|
||||
function newContext(proto) {
|
||||
let sandbox = Components.utils.Sandbox(window);
|
||||
let sandbox = Components.utils.Sandbox(window, { sandboxPrototype: proto || modules, wantXrays: false });
|
||||
// Hack:
|
||||
sandbox.Object = jsmodules.Object;
|
||||
sandbox.Math = jsmodules.Math;
|
||||
|
||||
Reference in New Issue
Block a user