mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 723084 - Remove observers when tabs are destroyed [r=bnicholson]
This commit is contained in:
parent
268d4fdda4
commit
3eceafc02c
@ -1508,6 +1508,8 @@ Tab.prototype = {
|
||||
this.browser.removeEventListener("pagehide", this, true);
|
||||
this.browser.removeEventListener("pageshow", this, true);
|
||||
|
||||
Services.obs.removeObserver(this, "document-shown");
|
||||
|
||||
// Make sure the previously selected panel remains selected. The selected panel of a deck is
|
||||
// not stable when panels are removed.
|
||||
let selectedPanel = BrowserApp.deck.selectedPanel;
|
||||
|
Loading…
Reference in New Issue
Block a user