Bug 1283627 - Update home pager immediately after restoring tabs. r=JanH

MozReview-Commit-ID: IidO1rCmeb0

--HG--
extra : rebase_source : b13291d1a6e0d7909ccf2b3a58a74fd769fc03d7
This commit is contained in:
Sebastian Kaspari 2016-07-13 16:15:19 +02:00
parent 18318f389f
commit c477247a23

View File

@ -343,6 +343,14 @@ public class BrowserApp extends GeckoApp
if (msg != Tabs.TabEvents.RESTORED) { if (msg != Tabs.TabEvents.RESTORED) {
throw new IllegalArgumentException("onTabChanged:" + msg + " must specify a tab."); throw new IllegalArgumentException("onTabChanged:" + msg + " must specify a tab.");
} }
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
if (selectedTab != null) {
// After restoring the tabs we want to update the home pager immediately. Otherwise we
// might wait for an event coming from Gecko and this can take several seconds. (Bug 1283627)
updateHomePagerForTab(selectedTab);
}
return; return;
} }