Bug 1035171 - Switching tabs triggers onLocationChange with LOCATION_CHANGE_SAME_DOCUMENT flag r=Neil
authorPhilip Chee <philip.chee@gmail.com>
Tue, 23 Sep 2014 04:04:23 +0800
changeset 20632 d8cb004900e8db0eb013637cf1bf25c01ed8fa47
parent 20631 cc814542995017983805759670b4d20d396400fe
child 20633 0048a8c71d004c90cd2ed5ce6fb7c087706138a4
child 20635 fa009516b93771edd7c8cb55973ddc5b29e23a83
push id1218
push userphilip.chee@gmail.com
push dateMon, 22 Sep 2014 22:28:09 +0000
treeherdercomm-beta@d8cb004900e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil
bugs1035171
Bug 1035171 - Switching tabs triggers onLocationChange with LOCATION_CHANGE_SAME_DOCUMENT flag r=Neil Don't send LOCATION_CHANGE_SAME_DOCUMENT in tabbrowser::updateUrlBar() a=Callek a=comm-aurora a=comm-beta a=comm-release CLOSED TREE
suite/browser/tabbrowser.xml
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -996,17 +996,17 @@
             this.mCurrentTab.removeAttribute("unread");
             var tabListener = this.mTabListeners[this.tabContainer.selectedIndex];
 
             // Update the URL bar.
             const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
             this.updateUrlBar(newBrowser.webProgress,
                               null,
                               newBrowser.currentURI,
-                              nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT,
+                              0,
                               newBrowser.securityUI,
                               newBrowser,
                               tabListener.mFeeds);
 
             // Send the state, status and progress to all progress listeners.
             var flags = tabListener.mStateFlags &
                 (nsIWebProgressListener.STATE_START |
                  nsIWebProgressListener.STATE_STOP);