mozilla/addon-sdk — pull request #254 by ZER0 (2011-11-04 02:02:31+00:00)
Title: Startup topic fix – Addons are not loaded in apps that doesn't support `sessionstore-windows-restored`

After the improvements of the Module Loader, the Addon SDK stopped to work for _Thunderbird_ – even if is not officially supported, it worked in the past.
That was because the topic `sessionstore-windows-restored` was used for all applications, when only _Firefox_ and _SeaMonkey_ support it (and apparently _Fennec_ as well, but is not documented. See: https://developer.mozilla.org/en/Observer_Notifications).
So the fix provides a function that based on the current application returns the topic that fit best for the startup.