Bug 735838 - About Home content displays briefly when opening an external link r=blassey

This commit is contained in:
Mark Finkle 2012-03-16 12:29:37 -04:00
parent 33b07ad87b
commit cac646ad20
2 changed files with 8 additions and 1 deletions

View File

@ -292,10 +292,17 @@ public class BrowserToolbar extends LinearLayout {
public void setTitle(CharSequence title) {
Tab tab = Tabs.getInstance().getSelectedTab();
// We use about:empty as a placeholder for an external page load and
// we don't want to change the title
if (tab != null && "about:empty".equals(tab.getURL()))
return;
// Setting a null title for about:home will ensure we just see
// the "Enter Search or Address" placeholder text
if (tab != null && "about:home".equals(tab.getURL()))
title = null;
mAwesomeBar.setText(title);
}

View File

@ -1700,7 +1700,7 @@ abstract public class GeckoApp
// loading it twice
intent.setAction(Intent.ACTION_MAIN);
intent.setData(null);
passedUri = null;
passedUri = "about:empty";
}
sGeckoThread = new GeckoThread(intent, passedUri, mRestoreSession);