mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 906227: Last tabs with switch-to-tab should not create new tabs. [r=margaret]
--HG-- extra : rebase_source : 929416c50248094fb3164b3b34a48486ac70f668
This commit is contained in:
parent
adc6bbb41b
commit
b9f4a59832
@ -2268,8 +2268,12 @@ abstract public class BrowserApp extends GeckoApp
|
||||
// HomePager.OnNewTabsListener
|
||||
@Override
|
||||
public void onNewTabs(String[] urls) {
|
||||
final EnumSet<OnUrlOpenListener.Flags> flags = EnumSet.of(OnUrlOpenListener.Flags.ALLOW_SWITCH_TO_TAB);
|
||||
|
||||
for (String url : urls) {
|
||||
openUrl(url, true);
|
||||
if (!maybeSwitchToTab(url, flags)) {
|
||||
openUrl(url, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user