Bug 1259389 - "Restore closed windows" items without url have additional indent at the left, r=Gijs. draft
authorRakhi Sharma <Rakhish1994@gmail.com>
Wed, 13 Apr 2016 13:54:15 +0530
changeset 350341 657df2e259114dd363836a0a897e95fcd5f3b77a
parent 348027 1ef1c2ca2d6d8000467bcecec45d1a5d2d74f138
child 518303 54a7ccd4b4fbbfcedfdf07343091267883c8c600
push id15309
push userbmo:Rakhish1994@gmail.com
push dateWed, 13 Apr 2016 11:19:04 +0000
reviewersGijs
bugs1259389
milestone48.0a1
Bug 1259389 - "Restore closed windows" items without url have additional indent at the left, r=Gijs. MozReview-Commit-ID: 17Ubpm9VDVA
browser/components/customizableui/CustomizableWidgets.jsm
--- a/browser/components/customizableui/CustomizableWidgets.jsm
+++ b/browser/components/customizableui/CustomizableWidgets.jsm
@@ -248,27 +248,27 @@ const CustomizableWidgets = [
 
       let utils = RecentlyClosedTabsAndWindowsMenuUtils;
       let tabsFragment = utils.getTabsFragment(doc.defaultView, "toolbarbutton", true,
                                                "menuRestoreAllTabsSubview.label");
       let separator = doc.getElementById("PanelUI-recentlyClosedTabs-separator");
       let elementCount = tabsFragment.childElementCount;
       separator.hidden = !elementCount;
       while (--elementCount >= 0) {
-        tabsFragment.children[elementCount].classList.add("subviewbutton");
+        tabsFragment.children[elementCount].classList.add("subviewbutton", "cui-withicon");
       }
       recentlyClosedTabs.appendChild(tabsFragment);
 
       let windowsFragment = utils.getWindowsFragment(doc.defaultView, "toolbarbutton", true,
                                                      "menuRestoreAllWindowsSubview.label");
       separator = doc.getElementById("PanelUI-recentlyClosedWindows-separator");
       elementCount = windowsFragment.childElementCount;
       separator.hidden = !elementCount;
       while (--elementCount >= 0) {
-        windowsFragment.children[elementCount].classList.add("subviewbutton");
+        windowsFragment.children[elementCount].classList.add("subviewbutton", "cui-withicon");
       }
       recentlyClosedWindows.appendChild(windowsFragment);
     },
     onCreated: function(aNode) {
       // Middle clicking recently closed items won't close the panel - cope:
       let onRecentlyClosedClick = function(aEvent) {
         if (aEvent.button == 1) {
           CustomizableUI.hidePanelForNode(this);