Bug 1567420 - Fix interactive element check in CustomizableUI.jsm. r=dao a=RyanVM
authorTim Nguyen <ntim.bugs@gmail.com>
Fri, 19 Jul 2019 20:15:33 +0000
changeset 541462 57689d90bbb83eb9e2dcbb372cd316f4e63acb53
parent 541461 48ed488f1c9363fb8799431013b9f3a3d09eaec0
child 541463 2110d20c80e6922c9531bc31679f057e452fc28d
push id11618
push userdvarga@mozilla.com
push dateMon, 22 Jul 2019 16:58:11 +0000
treeherdermozilla-beta@473500c4dca7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, RyanVM
bugs1567420
milestone69.0
Bug 1567420 - Fix interactive element check in CustomizableUI.jsm. r=dao a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D38728
browser/components/customizableui/CustomizableUI.jsm
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -2011,17 +2011,17 @@ var CustomizableUIInternal = {
         }
         // Find containing browser or iframe element in the parent doc.
         target = target.defaultView.docShell.chromeEventHandler;
         if (!target) {
           break;
         }
       }
       let tagName = target.localName;
-      inInput = tagName == "input" || tagName == "textbox";
+      inInput = tagName == "input" || tagName == "searchbar";
       inItem = tagName == "toolbaritem" || tagName == "toolbarbutton";
       let isMenuItem = tagName == "menuitem";
       inMenu = inMenu || isMenuItem;
 
       if (isMenuItem && target.hasAttribute("closemenu")) {
         let closemenuVal = target.getAttribute("closemenu");
         menuitemCloseMenu =
           closemenuVal == "single" || closemenuVal == "none"