Bug 854269 - Pin still selected when pressing Bac or Forward buttons. r=sfoster

This commit is contained in:
Brian R. Bondy 2013-04-04 12:18:10 -04:00
parent 28a5c5d315
commit 576e3b4353

View File

@ -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();