Bug 1390767 - UITour shouldn't put rounded-corner highlight on targets in the page action panel, r?Gijs
MozReview-Commit-ID: LYVc3kRPEfZ
--- a/browser/components/uitour/UITour.jsm
+++ b/browser/components/uitour/UITour.jsm
@@ -1143,17 +1143,17 @@ this.UITour = {
highlighter.parentElement.setAttribute("targetName", aTarget.targetName);
highlighter.parentElement.hidden = false;
let highlightAnchor = aAnchorEl;
let targetRect = highlightAnchor.getBoundingClientRect();
let highlightHeight = targetRect.height;
let highlightWidth = targetRect.width;
- if (this.targetIsInAppMenu(aTarget)) {
+ if (this.targetIsInAppMenu(aTarget) || this.targetIsInPageActionPanel(aTarget)) {
highlighter.classList.remove("rounded-highlight");
} else {
highlighter.classList.add("rounded-highlight");
}
if (highlightAnchor.classList.contains("toolbarbutton-1") &&
highlightAnchor.getAttribute("cui-areatype") === "toolbar" &&
highlightAnchor.getAttribute("overflowedItem") !== "true") {
// A toolbar button in navbar has its clickable area an