mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 16:55:46 +01:00
Merge default.
--HG-- branch : mode-refactoring
This commit is contained in:
@@ -294,7 +294,8 @@ const Dactyl = Module("dactyl", {
|
||||
|
||||
if (!context)
|
||||
context = userContext;
|
||||
return Cu.evalInSandbox("with (window) {" + str + "}", context, "1.8", fileName, lineNumber);
|
||||
context[EVAL_STRING] = str;
|
||||
return Cu.evalInSandbox("with (window) { eval(" + EVAL_STRING + ") }", context, "1.8", fileName, lineNumber);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -630,7 +631,6 @@ const Dactyl = Module("dactyl", {
|
||||
</item></>.toXMLString(), true);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Opens the help page containing the specified <b>topic</b> if it
|
||||
* exists.
|
||||
@@ -824,7 +824,7 @@ const Dactyl = Module("dactyl", {
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch(e) {}
|
||||
catch (e) {}
|
||||
// Unfortunately, failed page loads throw exceptions and
|
||||
// cause a lot of unwanted noise. This solution means that
|
||||
// any genuine errors go unreported.
|
||||
|
||||
Reference in New Issue
Block a user