зеркало из https://github.com/mozilla/gecko-dev.git
Bug 926323 - Tilt tests should unregister observers to prevent errors later on when scopes are dead, r=vporof
This commit is contained in:
Родитель
38631c5e07
Коммит
89f4dd3983
|
@ -94,6 +94,7 @@ function cleanup() {
|
|||
Services.obs.removeObserver(obs_DESTROYING, DESTROYING);
|
||||
Services.obs.removeObserver(obs_BEFORE_DESTROYED, BEFORE_DESTROYED);
|
||||
Services.obs.removeObserver(obs_DESTROYED, DESTROYED);
|
||||
Services.obs.removeObserver(obs_STARTUP, STARTUP);
|
||||
|
||||
gBrowser.removeCurrentTab();
|
||||
finish();
|
||||
|
|
|
@ -118,6 +118,7 @@ function cleanup() {
|
|||
Services.obs.removeObserver(tab_DESTROYING, DESTROYING);
|
||||
Services.obs.removeObserver(tab_SHOWN, SHOWN);
|
||||
Services.obs.removeObserver(tab_HIDDEN, HIDDEN);
|
||||
Services.obs.removeObserver(tab_STARTUP, STARTUP);
|
||||
|
||||
gBrowser.tabContainer.removeEventListener("TabSelect", tabSelect);
|
||||
gBrowser.removeCurrentTab();
|
||||
|
|
Загрузка…
Ссылка в новой задаче