Bug 1363485 - Update urlbarBindings.xml
MozReview-Commit-ID: 5PoMe8pNaYx
--- 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.