mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 16:34:11 +01:00
Fix some CPOW issues. Everything is still terrible, though.
This commit is contained in:
@@ -97,9 +97,12 @@ var Modules = function Modules(window) {
|
||||
if (normal)
|
||||
return create(proto);
|
||||
|
||||
let sandbox = Components.utils.Sandbox(window, { sandboxPrototype: proto || modules,
|
||||
sandboxName: name || ("Dactyl Sandbox " + ++_id),
|
||||
wantXrays: true });
|
||||
let sandbox = Components.utils.Sandbox(Cu.getObjectPrincipal(global),
|
||||
{ sandboxPrototype: proto || modules,
|
||||
sandboxName: name || ("Dactyl Sandbox " + ++_id),
|
||||
addonId: config.addon.id,
|
||||
wantXrays: true,
|
||||
metadata: { addonID: config.addon.id } });
|
||||
|
||||
// Hack:
|
||||
// sandbox.Object = jsmodules.Object;
|
||||
|
||||
Reference in New Issue
Block a user