mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 751796 - shut down AccessFu properly on disable(). r=davidb
This commit is contained in:
parent
b36680e437
commit
e0f3b1a143
@ -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) {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user