зеркало из https://github.com/mozilla/pjs.git
Bug 566827 - Connect win7 jump lists to purge session history observer. r=dao.
This commit is contained in:
Родитель
7a48fc4f4a
Коммит
87884abb80
|
@ -482,12 +482,14 @@ var WinTaskbarJumpList =
|
||||||
_initObs: function WTBJL__initObs() {
|
_initObs: function WTBJL__initObs() {
|
||||||
_observerService.addObserver(this, "private-browsing", false);
|
_observerService.addObserver(this, "private-browsing", false);
|
||||||
_observerService.addObserver(this, "quit-application-granted", false);
|
_observerService.addObserver(this, "quit-application-granted", false);
|
||||||
|
_observerService.addObserver(this, "browser:purge-session-history", false);
|
||||||
_prefs.addObserver("", this, false);
|
_prefs.addObserver("", this, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
_freeObs: function WTBJL__freeObs() {
|
_freeObs: function WTBJL__freeObs() {
|
||||||
_observerService.removeObserver(this, "private-browsing");
|
_observerService.removeObserver(this, "private-browsing");
|
||||||
_observerService.removeObserver(this, "quit-application-granted");
|
_observerService.removeObserver(this, "quit-application-granted");
|
||||||
|
_observerService.removeObserver(this, "browser:purge-session-history");
|
||||||
_prefs.removeObserver("", this);
|
_prefs.removeObserver("", this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче