Bug 1405377 - remove trailing separator in recently closed tabs/windows subviews, r?mikedeboer
The third param of 'getTabsFragment' and 'getWindowsFragment' toggles whether the 'restore all' item
gets prefixed (true) or suffixed (false). The prefixed version doesn't get a separator, so this
seems like the simplest fix.
MozReview-Commit-ID: BzKWvndWUMp
--- a/browser/components/customizableui/CustomizableWidgets.jsm
+++ b/browser/components/customizableui/CustomizableWidgets.jsm
@@ -210,17 +210,17 @@ const CustomizableWidgets = [
let document = event.target.ownerDocument;
let window = document.defaultView;
let viewType = panelview.id == this.recentlyClosedTabsPanel ? "Tabs" : "Windows";
this._panelMenuView.clearAllContents(panelview);
let utils = RecentlyClosedTabsAndWindowsMenuUtils;
let method = `get${viewType}Fragment`;
- let fragment = utils[method](window, "toolbarbutton");
+ let fragment = utils[method](window, "toolbarbutton", true);
let elementCount = fragment.childElementCount;
this._panelMenuView._setEmptyPopupStatus(panelview, !elementCount);
if (!elementCount)
return;
let body = document.createElement("vbox");
body.className = "panel-subview-body";
body.appendChild(fragment);