Bug 1363485 - Update urlbarBindings.xml draft
authorUK992 <urbankrajnc92@gmail.com>
Wed, 02 Aug 2017 19:21:01 +0200
changeset 619822 1ade65eef40c38997c5c36bb5de65be7caeb4daf
parent 618450 10b938b07697356cce65488be199df3b1adfebc5
child 641014 e4c917e503378606c4b670fa55acac649389a079
push id71829
push userbmo:urbankrajnc92@gmail.com
push dateWed, 02 Aug 2017 17:24:53 +0000
bugs1363485
milestone56.0a1
Bug 1363485 - Update urlbarBindings.xml MozReview-Commit-ID: 5PoMe8pNaYx
browser/base/content/urlbarBindings.xml
--- a/browser/base/content/urlbarBindings.xml
+++ b/browser/base/content/urlbarBindings.xml
@@ -1872,19 +1872,19 @@ file, You can obtain one at http://mozil
           // icon if it's not too far from the edge of the window.  If there are
           // at most two toolbar buttons between the window edge and the urlbar,
           // then consider that as "not too far."  The forward button's
           // visibility may have changed since the last time the popup was
           // opened, so this needs to happen now.  Do it *before* the popup
           // opens because otherwise the items will visibly shift.
           let nodes = [...document.getElementById("nav-bar-customization-target").childNodes];
           let urlbarPosition = nodes.findIndex(n => n.id == "urlbar-container");
-          let alignSiteIcons = urlbarPosition <= 2 &&
+          let alignSiteIcons = urlbarPosition <= 5 &&
                                nodes.slice(0, urlbarPosition)
-                                    .every(n => n.localName == "toolbarbutton");
+                                    .every(n => n.localName == "toolbarbutton" || n.id == "stop-reload-button");
           if (alignSiteIcons) {
             let identityRect =
               document.getElementById("identity-icon").getBoundingClientRect();
             this.siteIconStart = popupDirection == "rtl" ? identityRect.right
                                                          : identityRect.left;
           } else {
             // Reset the alignment so that the site icons are positioned
             // according to whatever's in the CSS.