Bug 705451: Anchor needs to be updated in url bar [r=mfinkle]
authorSriram Ramasubramanian <sriram@mozilla.com>
Tue, 06 Dec 2011 15:15:37 -0800
changeset 83809 6edca769b33a95a78b92b0cb1112e1fd59a7fc53
parent 83808 8e976212aabaebef2d60fdc9a8b91f1071d290b9
child 83810 70ca58127396844824186b0b3468d467072a2b51
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs705451
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 705451: Anchor needs to be updated in url bar [r=mfinkle]
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -669,18 +669,26 @@ abstract public class GeckoApp
 
         String baseURI = uri;
         if (baseURI.indexOf('#') != -1)
             baseURI = uri.substring(0, uri.indexOf('#'));
 
         if (oldBaseURI != null && oldBaseURI.indexOf('#') != -1)
             oldBaseURI = oldBaseURI.substring(0, oldBaseURI.indexOf('#'));
         
-        if (baseURI.equals(oldBaseURI))
+        if (baseURI.equals(oldBaseURI)) {
+            mMainHandler.post(new Runnable() {
+                public void run() {
+                    if (Tabs.getInstance().isSelectedTab(tab)) {
+                        mBrowserToolbar.setTitle(uri);
+                    }
+                }
+            });
             return;
+        }
 
         tab.updateFavicon(null);
         tab.updateFaviconURL(null);
         tab.updateSecurityMode("unknown");
         tab.removeTransientDoorHangers();
 
         maybeCancelFaviconLoad(tab);