From cf08acaf69151d9eea02c4aa142ef3924a4743fb Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 10 Oct 2009 23:43:06 -0400 Subject: [PATCH] Trigger plugin onUnload handlers at shutdown. --HG-- extra : rebase_source : 4649d9517d990bbc1dc9efc7b73518bdaa5919ec --- common/content/io.js | 3 +++ common/modules/storage.jsm | 0 muttator/content/mail.js | 0 3 files changed, 3 insertions(+) mode change 100755 => 100644 common/modules/storage.jsm mode change 100755 => 100644 muttator/content/mail.js diff --git a/common/content/io.js b/common/content/io.js index d9e5d1c3..e3ba52a0 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -141,6 +141,9 @@ function IO() //{{{ downloadManager.addListener(downloadListener); liberator.registerObserver("shutdown", function () { downloadManager.removeListener(downloadListener); + for (let [, plugin] in Iterator(plugins.contexts)) + if (plugin.onUnload) + plugin.onUnload(); }); /////////////////////////////////////////////////////////////////////////////}}} diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm old mode 100755 new mode 100644 diff --git a/muttator/content/mail.js b/muttator/content/mail.js old mode 100755 new mode 100644