1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 16:05:47 +01:00

Move window-based code to separate Sandbox compartment and nuke the hell out of as much as possible on unload.

This commit is contained in:
Kris Maglione
2014-02-16 21:05:40 -08:00
parent 4f7214873c
commit fa3930b870
4 changed files with 37 additions and 21 deletions

View File

@@ -151,9 +151,13 @@ var Contexts = Module("contexts", {
for each (let hive in values(this.groupList.slice()))
util.trapErrors("destroy", hive, "shutdown");
for (let [name, plugin] in iter(this.modules.plugins.contexts))
for each (let plugin in this.modules.plugins.contexts) {
if (plugin && "onUnload" in plugin && callable(plugin.onUnload))
util.trapErrors("onUnload", plugin);
if (isinstance(plugin, ["Sandbox"]))
util.trapErrors("nukeSandbox", Cu, plugin);
}
},
signals: {