test: Fixed test test_Glance_Basic_Close, b=(no-bug), c=split-view

This commit is contained in:
Mr. M 2025-05-27 12:51:17 +02:00
parent 015cdad2df
commit e48e7caef1
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18

View file

@ -1139,6 +1139,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
* Deactivates the split view. * Deactivates the split view.
*/ */
deactivateCurrentSplitView() { deactivateCurrentSplitView() {
if (this.currentView < 0) return;
this.setTabsDocShellState(this._data[this.currentView].tabs, false); this.setTabsDocShellState(this._data[this.currentView].tabs, false);
for (const tab of this._data[this.currentView].tabs) { for (const tab of this._data[this.currentView].tabs) {
const container = tab.linkedBrowser.closest('.browserSidebarContainer'); const container = tab.linkedBrowser.closest('.browserSidebarContainer');