mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 22:34:18 +01:00
Make userContext a proper Context.
This commit is contained in:
@@ -12,9 +12,6 @@ default xml namespace = XHTML;
|
||||
XML.ignoreWhitespace = false;
|
||||
XML.prettyPrinting = false;
|
||||
|
||||
var userContext = { __proto__: modules };
|
||||
var _userContext = newContext(userContext);
|
||||
|
||||
var EVAL_ERROR = "__dactyl_eval_error";
|
||||
var EVAL_RESULT = "__dactyl_eval_result";
|
||||
var EVAL_STRING = "__dactyl_eval_string";
|
||||
|
||||
@@ -375,19 +375,14 @@ var Tabs = Module("tabs", {
|
||||
* reloading.
|
||||
*/
|
||||
reloadAll: function (bypassCache) {
|
||||
if (bypassCache) {
|
||||
for (let i = 0; i < config.tabbrowser.mTabs.length; i++) {
|
||||
try {
|
||||
this.reload(config.tabbrowser.mTabs[i], bypassCache);
|
||||
}
|
||||
catch (e) {
|
||||
// FIXME: can we do anything useful here without stopping the
|
||||
// other tabs from reloading?
|
||||
}
|
||||
this.visibleTabs.forEach(function (tab) {
|
||||
try {
|
||||
this.reload(config.tabbrowser.mTabs[i], bypassCache);
|
||||
}
|
||||
}
|
||||
else
|
||||
config.tabbrowser.reloadAllTabs();
|
||||
catch (e) {
|
||||
dactyl.reportError(e, true);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user