fix: Fixed various regressions from 1.17b, b=closes #10924, closes #10928, closes #10933, c=common, split-view, tabs

This commit is contained in:
mr. m
2025-10-22 16:54:11 +02:00
parent a069093314
commit be417381ed
7 changed files with 36 additions and 12 deletions

View File

@@ -77,6 +77,8 @@ zen-generic-next = Next
# These labels will be used for the site data panel settings
zen-site-data-setting-allow = Allowed
zen-site-data-setting-block = Blocked
zen-site-data-protections-enabled = Enabled
zen-site-data-protections-disabled = Disabled
zen-site-data-setting-cross-site = Cross-Site cookie
zen-site-data-security-info-extension =
.label = Extension

View File

@@ -16,16 +16,19 @@
mainview-with-header="true">
<hbox id="zen-site-data-header">
<toolbarbutton id="zen-site-data-header-share"
data-l10n-id="zen-site-data-share"
data-l10n-id="zen-site-data-header-share"
flex="1"
closemenu="none" />
<toolbarbutton id="zen-site-data-header-reader-mode"
data-l10n-id="zen-site-data-header-reader-mode"
command="View:ReaderView"
flex="1" />
<toolbarbutton id="zen-site-data-header-screenshot"
data-l10n-id="zen-site-data-header-screenshot"
command="Browser:Screenshot"
flex="1" />
<toolbarbutton id="zen-site-data-header-bookmark"
data-l10n-id="zen-site-data-header-bookmark"
command="Browser:AddBookmarkAs"
flex="1" />
</hbox>
@@ -78,9 +81,9 @@
closemenu="none"
context="zenSiteDataActions" />
</hbox>
<html:div id="unified-extensions-messages-container">
<!-- messages will be inserted here -->
</html:div>
# Messages will be inserted here.
# Dont write anything directly here, even comments, as this may break the layout
<html:div id="unified-extensions-messages-container"></html:div>
</panelview>
</panelmultiview>
</panel>

View File

@@ -275,14 +275,12 @@ var gZenUIManager = {
// Section: URL bar
onUrlbarOpen() {
gURLBar.setAttribute('had-proxystate', gURLBar.getAttribute('pageproxystate'));
gURLBar.setPageProxyState('invalid', false);
},
onUrlbarClose() {
if (gURLBar.hasAttribute('had-proxystate')) {
gURLBar.setURI();
gURLBar.removeAttribute('had-proxystate');
if (!gURLBar.valueIsTyped && gURLBar._untrimmedValue !== gURLBar.value) {
gURLBar.handleRevert();
}
},

View File

@@ -133,7 +133,7 @@
}
:root:not([zen-single-toolbar='true']) #zen-appcontent-wrapper {
z-index: 2;
z-index: 3;
}
#nav-bar {

View File

@@ -133,8 +133,11 @@ tab-group[split-view-group] {
}
@container browser-tab (min-width: 70px) {
:root[zen-sidebar-expanded='true'] &:hover > .tabbrowser-tab:not([pinned]) .tab-close-button {
:root[zen-sidebar-expanded='true'] &:hover > .tabbrowser-tab:not([pinned]:not([pending])) .tab-close-button {
display: block !important;
/* This is from Firefox itself, but we need to always override it */
margin-inline-end: 0 !important;
}
}

View File

@@ -112,5 +112,17 @@
& #titlebar {
padding-top: var(--zen-toolbar-height);
}
& #nav-bar {
width: calc(100% + var(--zen-toolbox-max-width) - var(--zen-element-separation));
/**
* We only want it when the window buttons are on the left side, in other
* words, the first of the two selectors above.
*/
:root:not([zen-window-buttons-reversed='true']) & {
margin-left: calc(-1 * var(--zen-toolbox-max-width) + var(--zen-element-separation));
}
}
}
}

View File

@@ -363,9 +363,15 @@ export class nsZenSiteDataPanel {
switch (permission.state) {
// There should only be these types being displayed in the panel.
case SitePermissions.ALLOW:
if (permission.id === 'site-protection') {
return 'zen-site-data-protections-enabled';
}
return 'zen-site-data-setting-allow';
case SitePermissions.BLOCK:
case SitePermissions.AUTOPLAY_BLOCKED_ALL:
if (permission.id === 'site-protection') {
return 'zen-site-data-protections-disabled';
}
return 'zen-site-data-setting-block';
default:
return null;
@@ -521,12 +527,12 @@ export class nsZenSiteDataPanel {
const isCrossSiteCookie = permission.id.startsWith('3rdPartyStorage');
label.parentNode.setAttribute('state', newState == SitePermissions.ALLOW ? 'allow' : 'block');
label._permission.state = newState;
if (!isCrossSiteCookie) {
label
.querySelector('.zen-permission-popup-permission-state-label')
.setAttribute('data-l10n-id', this.#getPermissionStateLabelId({ state: newState }));
.setAttribute('data-l10n-id', this.#getPermissionStateLabelId(label._permission));
}
label._permission.state = newState;
}
#onClickEvent(event) {