mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:42:31 +02:00
Use sandboxes for all JS contexts, to fix breakage, now that we have CPG anyway.
--HG-- extra : rebase_source : 0eb9d8c6a8ee533d6e12d71372554163f9479cf2
This commit is contained in:
1 parent
047cc83641
commit
f511ceec40
4 files changed
+8
-10
No files matched your search
@@ -484,7 +484,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
if (fileName && fileName[0] == "[")
|
||||
fileName = "dactyl://command-line/";
|
||||
else if (!context)
|
||||
context = ctxt || _userContext;
|
||||
context = ctxt || userContext;
|
||||
|
||||
if (isinstance(context, ["Sandbox"]))
|
||||
return Cu.evalInSandbox(str, context, "1.8", fileName, lineNumber);
|
||||
|
||||
Reference in new issue
Block a user