Bug 1399651 - Don't run the library animations in popup windows with toolbar=false. r?gijs
MozReview-Commit-ID: 2vswZ2BTFwp
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -1515,16 +1515,17 @@ var LibraryUI = {
"toolkit.cosmeticAnimations.enabled", true);
}
let libraryButton = document.getElementById("library-button");
if (!libraryButton ||
libraryButton.getAttribute("cui-areatype") == "menu-panel" ||
libraryButton.getAttribute("overflowedItem") == "true" ||
!libraryButton.closest("#nav-bar") ||
+ !window.toolbar.visible ||
!this.COSMETIC_ANIMATIONS_ENABLED) {
return;
}
let animatableBox = document.getElementById("library-animatable-box");
let navBar = document.getElementById("nav-bar");
let libraryIcon = document.getAnonymousElementByAttribute(libraryButton, "class", "toolbarbutton-icon");
let dwu = window.getInterface(Ci.nsIDOMWindowUtils);