michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ michael@0: */ michael@0: michael@0: // Bug 655584 - awesomebar suggestions don't update after tab is closed michael@0: michael@0: function test() { michael@0: var tab1 = gBrowser.addTab(); michael@0: var tab2 = gBrowser.addTab(); michael@0: michael@0: // When urlbar in a new tab is focused, and a tab switch occurs, michael@0: // the urlbar popup should be closed michael@0: gBrowser.selectedTab = tab2; michael@0: gURLBar.focus(); // focus the urlbar in the tab we will switch to michael@0: gBrowser.selectedTab = tab1; michael@0: gURLBar.openPopup(); michael@0: gBrowser.selectedTab = tab2; michael@0: ok(!gURLBar.popupOpen, "urlbar focused in tab to switch to, close popup"); michael@0: michael@0: // cleanup michael@0: gBrowser.removeCurrentTab(); michael@0: gBrowser.removeCurrentTab(); michael@0: }