Skip to content

Commit

Permalink
Backed out changeset d79027c38f41 (bug 1792473) for causing failure a…
Browse files Browse the repository at this point in the history
…t test_focus_general.xhtml. CLOSED TREE
  • Loading branch information
Butkovits Atila committed Sep 29, 2022
1 parent 035a8c6 commit 166ef2b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 25 deletions.
4 changes: 0 additions & 4 deletions devtools/client/framework/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1767,16 +1767,12 @@ Toolbox.prototype = {

if (openedConsolePanel) {
deck.collapsed = true;
deck.removeAttribute("expanded");
splitter.hidden = true;
webconsolePanel.collapsed = false;
webconsolePanel.setAttribute("expanded", "");
} else {
deck.collapsed = false;
deck.toggleAttribute("expanded", !this.splitConsole);
splitter.hidden = !this.splitConsole;
webconsolePanel.collapsed = !this.splitConsole;
webconsolePanel.removeAttribute("expanded");
}
},

Expand Down
1 change: 0 additions & 1 deletion devtools/client/themes/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* we're using the `font` shorthand. */
font: message-box;
font-size: var(--theme-body-font-size);
-moz-box-layout: flex;

--tab-line-hover-color: rgba(0,0,0,.2);
--tab-line-selected-color: var(--blue-50);
Expand Down
11 changes: 8 additions & 3 deletions devtools/client/themes/storage.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ a {
min-width: 220px;
max-width: 500px;
overflow: auto;
contain: size;
}

#storage-tree {
background: var(--theme-sidebar-background);
/* Let the component gain focus when a click hits an empty area */
}

/* Let the component gain focus when a click hits an empty area */
#storage-tree {
-moz-user-focus: normal;
}

Expand Down Expand Up @@ -81,7 +86,7 @@ a {

/* Prevent all columns except for value from resizing with the panel */
#storage-table .table-widget-column:not(#value) {
-moz-box-flex: 0;
width: 0;
}

/* Text input in storage table */
Expand Down
14 changes: 1 addition & 13 deletions devtools/client/themes/toolbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -577,20 +577,8 @@
-moz-box-flex: 1;
}

#toolbox-panel-webconsole[collapsed],
#toolbox-deck[collapsed] {
height: 0 !important;
min-height: 0 !important;
}

#toolbox-deck:not([collapsed]),
#toolbox-panel-webconsole[expanded] {
/* Override the splitter-set height and flex instead */
height: auto !important;
}

/**
* Ensure that selected toolbox panel's contents are keyboard accessible as they
* Enrure that selected toolbox panel's contents are keyboard accessible as they
* are explicitly made not to be when hidden (default).
*/
.toolbox-panel[selected] * {
Expand Down
1 change: 0 additions & 1 deletion devtools/client/themes/widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@
width: 100%;
height: 100%;
overflow: auto;
contain: size;
}

.table-widget-body[empty="empty"] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ add_task(async function() {
currentUIState.webconsoleHeight +
currentUIState.splitterHeight
),
Math.round(currentUIState.containerHeight),
currentUIState.containerHeight,
"Everything adds up to container height"
);
ok(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ add_task(async function() {
"The actual height of the console is bound with a min height"
);

toolbox.webconsolePanel.style.height = "10000px";
ok(
toolbox.webconsolePanel.clientHeight < 10000,
"The actual height of the console is bound with a max height"
);

await toggleSplitConsoleWithEscape(toolbox);
ok(!toolbox.splitConsole, "Split console is now hidden.");
is(
Expand All @@ -81,7 +87,7 @@ add_task(async function() {

is(
getHeightPrefValue(),
1,
10000,
"Height is set based on panel height after closing"
);

Expand Down
1 change: 0 additions & 1 deletion toolkit/themes/shared/global-shared.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ xul|iframe {
border: none;
min-width: 10px;
min-height: 10px;
contain: size;
}

/* Label/description formatting */
Expand Down

0 comments on commit 166ef2b

Please sign in to comment.