11diff --git a/browser/base/content/browser-sidebar.js b/browser/base/content/browser-sidebar.js
2- index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafcf1d66f5a 100644
2+ index f09e37fc42f7754f7f3687884ead25124c1b2076..e1833bbfd8a8ed7da767349f886d554f3dd795f3 100644
33--- a/browser/base/content/browser-sidebar.js
44+++ b/browser/base/content/browser-sidebar.js
55@@ -11,6 +11,10 @@ var SidebarUI = {
@@ -37,11 +37,21 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
3737 }),
3838 ],
3939 [
40- @@ -47,8 +54,27 @@ var SidebarUI = {
40+ @@ -47,8 +54,37 @@ var SidebarUI = {
4141 elementId: "sidebar-switcher-tabs",
4242 url: "chrome://browser/content/syncedtabs/sidebar.xhtml",
4343 menuId: "menu_tabsSidebar",
4444+ iconurl: "chrome://browser/skin/tab.svg",
45+ + }),
46+ + ],
47+ + [
48+ + "viewDownloadsSidebar",
49+ + makeSidebar({
50+ + elementId: "sidebar-switcher-downloads",
51+ + title: "Downloads",
52+ + url: "about:downloads",
53+ + menuId: "menu_downloadsSidebar",
54+ + iconurl: "chrome://browser/skin/downloads/downloads.svg"
4555 }),
4656 ],
4757+ [
@@ -65,7 +75,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
6575 ]));
6676 },
6777
68- @@ -61,6 +87 ,8 @@ var SidebarUI = {
78+ @@ -61,6 +97 ,8 @@ var SidebarUI = {
6979 return (this._browser = document.getElementById("sidebar"));
7080 },
7181 POSITION_START_PREF: "sidebar.position_start",
@@ -74,7 +84,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
7484 DEFAULT_SIDEBAR_ID: "viewBookmarksSidebar",
7585
7686 // lastOpenedId is set in show() but unlike currentID it's not cleared out on hide
77- @@ -78,6 +106 ,8 @@ var SidebarUI = {
87+ @@ -78,6 +116 ,8 @@ var SidebarUI = {
7888 },
7989 _splitter: null,
8090 _icon: null,
@@ -83,7 +93,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
8393 _reversePositionButton: null,
8494 _switcherPanel: null,
8595 _switcherTarget: null,
86- @@ -110,10 +140 ,40 @@ var SidebarUI = {
96+ @@ -110,10 +150 ,40 @@ var SidebarUI = {
8797 this._switcherTarget = document.getElementById("sidebar-switcher-target");
8898 this._switcherArrow = document.getElementById("sidebar-switcher-arrow");
8999
@@ -124,7 +134,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
124134 this._inited = true;
125135
126136 Services.obs.addObserver(this, "intl:app-locales-changed");
127- @@ -159,17 +219 ,26 @@ var SidebarUI = {
137+ @@ -159,17 +229 ,26 @@ var SidebarUI = {
128138 /**
129139 * The handler for Services.obs.addObserver.
130140 **/
@@ -155,7 +165,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
155165 }
156166 }
157167 },
158- @@ -573,6 +642 ,10 @@ var SidebarUI = {
168+ @@ -573,6 +652 ,10 @@ var SidebarUI = {
159169 this._box.setAttribute("sidebarcommand", commandID);
160170 this.lastOpenedId = commandID;
161171
@@ -166,7 +176,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
166176 let { url, title, sourceL10nEl } = this.sidebars.get(commandID);
167177 this.title = title;
168178 // Keep the title element in sync with any l10n changes.
169- @@ -618,6 +691 ,26 @@ var SidebarUI = {
179+ @@ -618,6 +701 ,26 @@ var SidebarUI = {
170180
171181 this.selectMenuItem("");
172182
@@ -193,7 +203,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
193203 // Replace the document currently displayed in the sidebar with about:blank
194204 // so that we can free memory by unloading the page. We need to explicitly
195205 // create a new content viewer because the old one doesn't get destroyed
196- @@ -641,25 +734 ,112 @@ var SidebarUI = {
206+ @@ -641,25 +744 ,112 @@ var SidebarUI = {
197207 * none if the argument is an empty string.
198208 */
199209 selectMenuItem(commandID) {
0 commit comments