mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 735838 - About Home content displays briefly when opening an external link r=blassey
This commit is contained in:
parent
33b07ad87b
commit
cac646ad20
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user