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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user