Bug 751796 - shut down AccessFu properly on disable(). r=davidb

This commit is contained in:
Eitan Isaacson 2012-05-07 09:44:44 -07:00
parent b36680e437
commit e0f3b1a143
2 changed files with 6 additions and 6 deletions

View File

@ -84,11 +84,11 @@ var AccessFu = {
VirtualCursorController.detach();
Services.obs.addObserver(this, 'accessible-event', false);
this.chromeWin.removeEventListener('DOMActivate', this);
this.chromeWin.removeEventListener('resize', this);
this.chromeWin.removeEventListener('scroll', this);
this.chromeWin.removeEventListener('TabOpen', this);
Services.obs.removeObserver(this, 'accessible-event');
this.chromeWin.removeEventListener('DOMActivate', this, true);
this.chromeWin.removeEventListener('resize', this, true);
this.chromeWin.removeEventListener('scroll', this, true);
this.chromeWin.removeEventListener('TabOpen', this, true);
},
amINeeded: function(aPref) {

View File

@ -24,7 +24,7 @@ var VirtualCursorController = {
},
detach: function detach() {
this.chromeWin.document.removeEventListener('keypress', this.onkeypress);
this.chromeWin.document.removeEventListener('keypress', this.onkeypress, true);
},
getBrowserApp: function getBrowserApp() {