test: Fixed tests and other small QA fixes, b=no-bug, c=common, workspaces

This commit is contained in:
mr. m
2025-10-15 02:06:51 +02:00
parent 80623a8e46
commit c06de3372d
6 changed files with 24 additions and 38 deletions

View File

@@ -126,7 +126,12 @@
darkModeChange
);
XPCOMUtils.defineLazyPreferenceGetter(this, 'darkModeBias', 'zen.theme.dark-mode-bias', 0.5);
XPCOMUtils.defineLazyPreferenceGetter(
this,
'darkModeBias',
'zen.theme.dark-mode-bias',
'0.5'
);
}
handleDarkModeChange() {
@@ -1212,7 +1217,7 @@
let lightText = this.getToolbarColor(false); // e.g. [r, g, b, a]
if (this.canBeTransparent) {
lightText[3] -= this.darkModeBias; // Reduce alpha for light text
lightText[3] -= parseFloat(this.darkModeBias); // Reduce alpha for light text
}
// Composite text color over background

View File

@@ -2473,7 +2473,10 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
const shouldHideSeparator =
pinnedContainer.children.length === 1 ||
Array.from(arrowScrollbox.children).filter(
(child) => !child.hasAttribute('hidden') && !child.hasAttribute('zen-empty-tab')
(child) =>
!child.hasAttribute('hidden') &&
!child.hasAttribute('bursting') &&
!child.hasAttribute('zen-empty-tab')
).length <= 1;
if (shouldHideSeparator) {
pinnedContainer.setAttribute('hide-separator', 'true');
@@ -2498,7 +2501,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
for (const entry of entries) {
let originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
if (!originalWorkspaceId) {
originalWorkspaceId = entry.target.closest('zen-workspace')?.id;
originalWorkspaceId = entry.target.closest('zen-workspace')?.id || this.activeWorkspace;
}
const workspacesIds = [];
if (entry.target.closest('#zen-essentials')) {