include cui change draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 08 Jul 2020 01:15:26 +0100
changeset 3028777 d2efc64d0d0b2fd088b38bba76790b196c971a22
parent 3015683 74aed250da9ec95e466416556bbd42022c0bb43b
child 3028778 85a74d6b4193734ad0128cdcefd154176c08df8a
child 3028802 7d07368ed810a7114f88f5acfd4937aa8b548254
push id566008
push usergijskruitbosch@gmail.com
push dateWed, 08 Jul 2020 00:17:11 +0000
treeherdertry@85a74d6b4193 [default view] [failures only]
milestone80.0a1
include cui change
browser/components/customizableui/CustomizableUI.jsm
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -1752,17 +1752,17 @@ var CustomizableUIInternal = {
       // If the widget has a view, and has view showing / hiding listeners,
       // hook those up to this widget.
       if (aWidget.type == "view") {
         log.debug(
           "Widget " +
             aWidget.id +
             " has a view. Auto-registering event handlers."
         );
-        let viewNode = aDocument.getElementById(aWidget.viewId);
+        let viewNode = PanelMultiView.getViewNode(aDocument, aWidget.viewId);
 
         if (viewNode) {
           // PanelUI relies on the .PanelUI-subView class to be able to show only
           // one sub-view at a time.
           viewNode.classList.add("PanelUI-subView");
           if (aWidget.source == CustomizableUI.SOURCE_BUILTIN) {
             nodeClasses.push("subviewbutton-nav");
           }