Bug 1363485 - Update urlbarBindings.xml r=dao

MozReview-Commit-ID: 5PoMe8pNaYx

--HG--
extra : rebase_source : f73c9399e605a3cd6cfee50fcfe260f2f18f34b5
This commit is contained in:
UK992 2017-08-02 19:21:01 +02:00
parent 04a7b8f7ca
commit 579d663bdf

View File

@ -1877,9 +1877,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// 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();