fix: Fixed glance crashing when trying to be closed, b=closes #9633, c=glance

This commit is contained in:
Mr. M
2025-07-26 23:10:45 +02:00
parent e235ac6fd6
commit 1518ea71f4
2 changed files with 5 additions and 4 deletions

View File

@@ -259,6 +259,9 @@
}
}
const browserSidebarContainer = this.#currentParentTab?.linkedBrowser?.closest(
'.browserSidebarContainer'
);
const sidebarButtons = this.browserWrapper.querySelector('.zen-glance-sidebar-container');
if (onTabClose && hasFocused && !this.#confirmationTimeout && sidebarButtons) {
const cancelButton = sidebarButtons?.querySelector('.zen-glance-sidebar-close');
@@ -272,9 +275,7 @@
this.browserWrapper.removeAttribute('has-finished-animation');
if (noAnimation) {
this._clearContainerStyles(
this.#currentParentTab?.linkedBrowser?.closest('.browserSidebarContainer')
);
this._clearContainerStyles(browserSidebarContainer);
this.quickCloseGlance({ closeCurrentTab: false });
return;
}

View File

@@ -19,7 +19,7 @@
"brandShortName": "Zen",
"brandFullName": "Zen Browser",
"release": {
"displayVersion": "1.14.8b",
"displayVersion": "1.14.9b",
"github": {
"repo": "zen-browser/desktop"
},