Bug 969356 - When mouse clicking on a top site tile, the watermark shifts r=jimm
authorRodrigo Silveira <rsilveira@mozilla.com>
Wed, 19 Feb 2014 13:25:17 -0800
changeset 170383 a9a604b10f0eb39d7472925786e7b26975a810f9
parent 170382 bfecd06b79f20521dc59eda5686b15e084384cdc
child 170384 66b8fc136e5e695b355bf3240f5b9214cf5a35a2
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersjimm
bugs969356
milestone30.0a1
Bug 969356 - When mouse clicking on a top site tile, the watermark shifts r=jimm
browser/metro/base/content/WebProgress.js
browser/metro/base/content/browser-ui.js
--- a/browser/metro/base/content/WebProgress.js
+++ b/browser/metro/base/content/WebProgress.js
@@ -96,16 +96,17 @@ const WebProgress = {
 
   _locationChange: function _locationChange(aJson, aTab) {
     let spec = aJson.location;
     let location = spec.split("#")[0]; // Ignore fragment identifier changes.
 
     if (aTab == Browser.selectedTab) {
       BrowserUI.updateURI();
       BrowserUI.update();
+      BrowserUI.updateStartURIAttributes(aJson.location);
     }
 
     let locationHasChanged = (location != aTab.browser.lastLocation);
     if (locationHasChanged) {
       Browser.getNotificationBox(aTab.browser).removeTransientNotifications();
       aTab.browser.lastLocation = location;
       aTab.browser.userTypedValue = "";
       aTab.browser.appIcon = { href: null, size:-1 };
--- a/browser/metro/base/content/browser-ui.js
+++ b/browser/metro/base/content/browser-ui.js
@@ -257,17 +257,16 @@ var BrowserUI = {
    * Content visibility
    */
 
   get isContentShowing() {
     return Elements.contentShowing.getAttribute("disabled") != true;
   },
 
   showContent: function showContent(aURI) {
-    this.updateStartURIAttributes(aURI);
     ContextUI.dismissTabs();
     ContextUI.dismissContextAppbar();
     FlyoutPanelsUI.hide();
     PanelUI.hide();
   },
 
   /*********************************
    * Crash reporting