no-bug: Fixed trying to update without verified MAR channels (gh-13341)

This commit is contained in:
mr. m
2026-04-21 10:41:53 +02:00
committed by GitHub
parent 014eabed3c
commit 1753d8855c
6 changed files with 28 additions and 11 deletions

8
package-lock.json generated
View File

@@ -11,7 +11,7 @@
"devDependencies": {
"@babel/preset-typescript": "^7.27.0",
"@zen-browser/prettier": "^3.9.3",
"@zen-browser/surfer": "^1.14.3",
"@zen-browser/surfer": "^1.14.4",
"formal-git": "^1.2.9",
"globals": "^16.3.0",
"husky": "^9.1.7",
@@ -868,9 +868,9 @@
}
},
"node_modules/@zen-browser/surfer": {
"version": "1.14.3",
"resolved": "https://registry.npmjs.org/@zen-browser/surfer/-/surfer-1.14.3.tgz",
"integrity": "sha512-AjJx7jedNSSP5WRWsG3W5fUxYSaWlY3nir/MZ2RFS+C0/rs6Uj+qpOVlMu6ZrQf9cr9r13e33nP5GGhSWbGOSA==",
"version": "1.14.4",
"resolved": "https://registry.npmjs.org/@zen-browser/surfer/-/surfer-1.14.4.tgz",
"integrity": "sha512-9PA3Z/wJL/wCbjAuy51N1LsOgd/5dIyZOJ+Sn81S6mm/3g5yZhrWMxcwugH2p6ULp/G4wu+3sCmd39Jrj0ccWg==",
"dev": true,
"license": "MPL-2.0",
"dependencies": {

View File

@@ -47,7 +47,7 @@
"devDependencies": {
"@babel/preset-typescript": "^7.27.0",
"@zen-browser/prettier": "^3.9.3",
"@zen-browser/surfer": "^1.14.3",
"@zen-browser/surfer": "^1.14.4",
"formal-git": "^1.2.9",
"globals": "^16.3.0",
"husky": "^9.1.7",

View File

@@ -264,7 +264,7 @@ window.gZenUIManager = {
);
gURLBar.style.setProperty(
"--zen-urlbar-width",
`${Math.min(window.innerWidth / 2, 750)}px`
`${Math.min(window.innerWidth / 1.5, 750)}px`
);
gZenVerticalTabsManager.actualWindowButtons.removeAttribute(
"zen-has-hover"

View File

@@ -268,7 +268,7 @@
background-color: var(--zen-urlbar-background-transparent, var(--zen-urlbar-background-base)) !important;
box-shadow: 0 30px 140px -15px light-dark(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)) !important;
backdrop-filter: none !important;
outline: 0.5px solid light-dark(rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.2)) !important;
outline: 0.5px solid light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)) !important;
outline-offset: var(--zen-urlbar-outline-offset) !important;
/* stylelint-disable-next-line media-query-no-invalid */
@@ -300,7 +300,7 @@
:root[zen-single-toolbar="true"] {
--urlbar-icon-border-radius: 8px !important;
--urlbar-inner-border-radius: var(--toolbarbutton-border-radius) !important;
--urlbar-inner-border-radius: 6px !important;
#identity-permission-box > *:not(#zen-site-data-icon-button) {
visibility: collapse;
@@ -517,7 +517,7 @@
margin-left: 0 !important;
margin-right: 12px !important;
padding: 6px !important;
border-radius: 4px !important;
border-radius: 3px !important;
}
.urlbarView-userContext {
@@ -635,7 +635,7 @@
}
&[selected] {
--zen-selected-bg: color-mix(in srgb, var(--zen-primary-color) 55%, light-dark(rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.2)) 50%);
--zen-selected-bg: color-mix(in srgb, var(--zen-primary-color) 50%, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)));
--zen-selected-color: color-mix(in srgb, var(--zen-selected-bg), black 30%);
background-color: var(--zen-selected-bg) !important;

View File

@@ -297,6 +297,18 @@ class nsZenWindowSync {
if (tab.pinned && !tab._zenPinnedInitialState) {
await this.setPinnedTabState(tab);
}
// Lets clear extra values to save some memory, we only really
// care about the URL and title for the initial state, and we want
// to avoid keeping the whole session history around.
if (tab._zenPinnedInitialState) {
tab._zenPinnedInitialState = {
...tab._zenPinnedInitialState,
entry: {
url: tab._zenPinnedInitialState.entry.url,
title: tab._zenPinnedInitialState.entry.title,
},
};
}
if (
!lazy.gWindowSyncEnabled ||
(lazy.gSyncOnlyPinnedTabs && !tab.pinned)
@@ -1215,8 +1227,12 @@ class nsZenWindowSync {
activeIndex--;
activeIndex = Math.min(activeIndex, entries.length - 1);
activeIndex = Math.max(activeIndex, 0);
let entryToUse = (entries[activeIndex] || entries[0]) ?? null;
const initialState = {
entry: (entries[activeIndex] || entries[0]) ?? null,
entry: {
url: entryToUse?.url,
title: entryToUse?.title,
},
image,
};
this.#runOnAllWindows(null, win => {

View File

@@ -353,6 +353,7 @@
&:-moz-broken {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3C/svg%3E") !important;
background: color-mix(in srgb, var(--zen-primary-color) 80%, light-dark(rgb(0, 0, 0), rgb(255, 255, 255)));
opacity: 0.5;
}
}