mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854269 - Pin still selected when pressing Bac or Forward buttons. r=sfoster
This commit is contained in:
parent
28a5c5d315
commit
576e3b4353
@ -16,6 +16,8 @@ var Appbar = {
|
||||
window.addEventListener('MozPrecisePointer', this, false);
|
||||
window.addEventListener('MozImprecisePointer', this, false);
|
||||
window.addEventListener('MozContextActionsChange', this, false);
|
||||
Elements.browsers.addEventListener('URLChanged', this, true);
|
||||
Elements.tabList.addEventListener('TabSelect', this, true);
|
||||
|
||||
this._updateDebugButtons();
|
||||
this._updateZoomButtons();
|
||||
@ -26,6 +28,10 @@ var Appbar = {
|
||||
|
||||
handleEvent: function Appbar_handleEvent(aEvent) {
|
||||
switch (aEvent.type) {
|
||||
case 'URLChanged':
|
||||
case 'TabSelect':
|
||||
this.appbar.dismiss();
|
||||
break;
|
||||
case 'MozAppbarShowing':
|
||||
this._updatePinButton();
|
||||
this._updateStarButton();
|
||||
|
Loading…
Reference in New Issue
Block a user