diff options
-rw-r--r-- | _libly.js | 2 | ||||
-rw-r--r-- | commandBookmarklet.js | 2 | ||||
-rw-r--r-- | haiku.js | 2 | ||||
-rw-r--r-- | twitter.js | 2 | ||||
-rw-r--r-- | wassr.js | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -231,7 +231,7 @@ libly.$U = {//{{{ var fnc = window.eval; var sandbox; try { - sandbox = new Components.utils.Sandbox(window); + sandbox = new Components.utils.Sandbox("about:blank"); if (Components.utils.evalInSandbox('true', sandbox) === true) { fnc = function(text) { return Components.utils.evalInSandbox(text, sandbox); }; } diff --git a/commandBookmarklet.js b/commandBookmarklet.js index 829c9cd..18adf93 100644 --- a/commandBookmarklet.js +++ b/commandBookmarklet.js @@ -98,7 +98,7 @@ function toBoolean (value, def) { } function evalInSandbox (str) { - let sandbox = new Components.utils.Sandbox(buffer.URL); + let sandbox = new Components.utils.Sandbox("about:blank"); sandbox.__proto__ = content.window.wrappedJSObject; return Components.utils.evalInSandbox(str, sandbox); } @@ -63,7 +63,7 @@ The script allows you to update Haiku status from Vimperator. var evalFunc = window.eval;
var statuses = null;
try {
- var sandbox = new Components.utils.Sandbox(window);
+ var sandbox = new Components.utils.Sandbox("about:blank");
if (Components.utils.evalInSandbox("true", sandbox) === true) {
evalFunc = function(text) {
return Components.utils.evalInSandbox(text, sandbox);
@@ -50,7 +50,7 @@ let PLUGIN_INFO = var passwordManager = Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager); var evalFunc = window.eval; try { - var sandbox = new Components.utils.Sandbox(window); + var sandbox = new Components.utils.Sandbox("about:blank"); if (Components.utils.evalInSandbox("true", sandbox) === true){ evalFunc = function(text){ return Components.utils.evalInSandbox(text, sandbox); @@ -38,7 +38,7 @@ var passwordManager = Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
var evalFunc = window.eval;
try {
- var sandbox = new Components.utils.Sandbox(window);
+ var sandbox = new Components.utils.Sandbox("about:blank");
if (Components.utils.evalInSandbox("true", sandbox) === true) {
evalFunc = function(text) {
return Components.utils.evalInSandbox(text, sandbox);
|