Make sure the sharePanel object cleans up after itself.
This commit is contained in:
Родитель
d7b52616a0
Коммит
e643d7f06c
|
@ -356,6 +356,8 @@ FFShare.prototype = {
|
|||
this.window.removeEventListener('tabviewhide', this.tabViewHideListener, false);
|
||||
this.tabViewShowListener = null;
|
||||
this.tabViewHideListener = null;
|
||||
|
||||
this.sharePanel.unload();
|
||||
},
|
||||
|
||||
onInstallUpgrade: function (version) {
|
||||
|
|
|
@ -123,7 +123,7 @@ sharePanel.prototype = {
|
|||
);
|
||||
},
|
||||
|
||||
shutdown: function () {
|
||||
unload: function () {
|
||||
Services.obs.removeObserver(this, 'content-document-global-created');
|
||||
let webProgress = this.browser.webProgress;
|
||||
webProgress.removeProgressListener(this.stateProgressListener);
|
||||
|
|
Загрузка…
Ссылка в новой задаче