Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/
3 */
5 // Bug 655584 - awesomebar suggestions don't update after tab is closed
7 function test() {
8 var tab1 = gBrowser.addTab();
9 var tab2 = gBrowser.addTab();
11 // When urlbar in a new tab is focused, and a tab switch occurs,
12 // the urlbar popup should be closed
13 gBrowser.selectedTab = tab2;
14 gURLBar.focus(); // focus the urlbar in the tab we will switch to
15 gBrowser.selectedTab = tab1;
16 gURLBar.openPopup();
17 gBrowser.selectedTab = tab2;
18 ok(!gURLBar.popupOpen, "urlbar focused in tab to switch to, close popup");
20 // cleanup
21 gBrowser.removeCurrentTab();
22 gBrowser.removeCurrentTab();
23 }