shutdown and saves the current state * of the Browser Console for session restore. */ var ShutdownObserver = { _initialized: false, init() { if (this._initialized) { return; } Services.obs.addObserver(this, "quit-application-granted"); this._initialized = true; }, observe(message, topic) { if (topic == "quit-application-granted") { BrowserConsoleManager.storeBrowserConsoleSessionState(); this.uninit(); } }, uninit() { Services.obs.removeObserver(this, "quit-application-granted"); }, }; module.exports = BrowserConsole; PK