author | Brian Grinstead <bgrinstead@mozilla.com> |
Tue, 07 Apr 2015 14:27:00 +0200 | |
changeset 238178 | 77303df92debade87a0c412fbf3eeb8b372d5a32 |
parent 238177 | 624b3ac9abf6581fc7ffc140cb501bc1e9e238be |
child 238179 | c8066e57077eef5e9909d814fc7b67ecf7b63e10 |
push id | 58133 |
push user | ryanvm@gmail.com |
push date | Wed, 08 Apr 2015 16:59:36 +0000 |
treeherder | mozilla-inbound@8911c111a6ad [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jryans |
bugs | 1151259 |
milestone | 40.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/browser/devtools/framework/sidebar.js +++ b/browser/devtools/framework/sidebar.js @@ -114,32 +114,32 @@ ToolSidebar.prototype = { */ addAllTabsMenu: function() { if (this._allTabsBtn) { return; } let tabs = this._tabbox.tabs; - // Create a toolbar and insert it first in the tabbox - let allTabsToolbar = this._panelDoc.createElementNS(XULNS, "toolbar"); - this._tabbox.insertBefore(allTabsToolbar, tabs); + // Create a container and insert it first in the tabbox + let allTabsContainer = this._panelDoc.createElementNS(XULNS, "box"); + this._tabbox.insertBefore(allTabsContainer, tabs); // Move the tabs inside and make them flex - allTabsToolbar.appendChild(tabs); + allTabsContainer.appendChild(tabs); tabs.setAttribute("flex", "1"); // Create the dropdown menu next to the tabs this._allTabsBtn = this._panelDoc.createElementNS(XULNS, "toolbarbutton"); this._allTabsBtn.setAttribute("class", "devtools-sidebar-alltabs"); this._allTabsBtn.setAttribute("type", "menu"); this._allTabsBtn.setAttribute("label", l10n("sidebar.showAllTabs.label")); this._allTabsBtn.setAttribute("tooltiptext", l10n("sidebar.showAllTabs.tooltip")); this._allTabsBtn.setAttribute("hidden", "true"); - allTabsToolbar.appendChild(this._allTabsBtn); + allTabsContainer.appendChild(this._allTabsBtn); let menuPopup = this._panelDoc.createElementNS(XULNS, "menupopup"); this._allTabsBtn.appendChild(menuPopup); // Listening to tabs overflow event to toggle the alltabs button tabs.addEventListener("overflow", this._onTabBoxOverflow, false); tabs.addEventListener("underflow", this._onTabBoxUnderflow, false); @@ -157,17 +157,17 @@ ToolSidebar.prototype = { let tabs = this._tabbox.tabs; tabs.removeEventListener("overflow", this._onTabBoxOverflow, false); tabs.removeEventListener("underflow", this._onTabBoxUnderflow, false); // Moving back the tabs as a first child of the tabbox this._tabbox.insertBefore(tabs, this._tabbox.tabpanels); - this._tabbox.querySelector("toolbar").remove(); + this._tabbox.querySelector("box").remove(); this._allTabsBtn = null; }, _onTabBoxOverflow: function() { this._allTabsBtn.removeAttribute("hidden"); },