Only show the host portion of the url in the title bar.
For security reasons, we want to ensure that the domain
name of the current page is being shown in the title bar.
Use BrowserActivity's method of building the url for the
title bar, which also shows https if it is a secure site.
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index d7f3910..5e236c5 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -2518,7 +2518,7 @@
* or an empty string if, for example, the URL in question is a
* file:// URL with no hostname.
*/
- private static String buildTitleUrl(String url) {
+ /* package */ static String buildTitleUrl(String url) {
String titleUrl = null;
if (url != null) {