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.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | * http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 3 | */ |
michael@0 | 4 | |
michael@0 | 5 | // Bug 655584 - awesomebar suggestions don't update after tab is closed |
michael@0 | 6 | |
michael@0 | 7 | function test() { |
michael@0 | 8 | var tab1 = gBrowser.addTab(); |
michael@0 | 9 | var tab2 = gBrowser.addTab(); |
michael@0 | 10 | |
michael@0 | 11 | // When urlbar in a new tab is focused, and a tab switch occurs, |
michael@0 | 12 | // the urlbar popup should be closed |
michael@0 | 13 | gBrowser.selectedTab = tab2; |
michael@0 | 14 | gURLBar.focus(); // focus the urlbar in the tab we will switch to |
michael@0 | 15 | gBrowser.selectedTab = tab1; |
michael@0 | 16 | gURLBar.openPopup(); |
michael@0 | 17 | gBrowser.selectedTab = tab2; |
michael@0 | 18 | ok(!gURLBar.popupOpen, "urlbar focused in tab to switch to, close popup"); |
michael@0 | 19 | |
michael@0 | 20 | // cleanup |
michael@0 | 21 | gBrowser.removeCurrentTab(); |
michael@0 | 22 | gBrowser.removeCurrentTab(); |
michael@0 | 23 | } |