diff -r 000000000000 -r 6474c204b198 browser/base/content/test/general/browser_bug565575.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/base/content/test/general/browser_bug565575.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,13 @@ +function test() { + gBrowser.selectedBrowser.focus(); + BrowserOpenTab(); + ok(gURLBar.focused, "location bar is focused for a new tab"); + + gBrowser.selectedTab = gBrowser.tabs[0]; + ok(!gURLBar.focused, "location bar isn't focused for the previously selected tab"); + + gBrowser.selectedTab = gBrowser.tabs[1]; + ok(gURLBar.focused, "location bar is re-focused when selecting the new tab"); + + gBrowser.removeCurrentTab(); +}