mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 968129 - load initial tab in WebappImpl:loadStartupTab; r=mfinkle
This commit is contained in:
parent
ccbbcccc35
commit
c5f583bd2b
@ -184,7 +184,9 @@ public class WebappImpl extends GeckoApp implements InstallCallback {
|
||||
|
||||
@Override
|
||||
protected void loadStartupTab(String uri) {
|
||||
// NOP
|
||||
// Load a tab so it's available for any code that assumes a tab
|
||||
// before the app tab itself is loaded in BrowserApp._loadWebapp.
|
||||
super.loadStartupTab("about:blank");
|
||||
}
|
||||
|
||||
private void showSplash() {
|
||||
@ -261,6 +263,15 @@ public class WebappImpl extends GeckoApp implements InstallCallback {
|
||||
case LOCATION_CHANGE:
|
||||
if (Tabs.getInstance().isSelectedTab(tab)) {
|
||||
final String urlString = tab.getURL();
|
||||
|
||||
// Don't show the titlebar for about:blank, which we load
|
||||
// into the initial tab we create while waiting for the app
|
||||
// to load.
|
||||
if (urlString != null && urlString.equals("about:blank")) {
|
||||
mTitlebar.setVisibility(View.GONE);
|
||||
return;
|
||||
}
|
||||
|
||||
final URL url;
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user