fix: bug #7453 - Pinned tabs failing to restore if they got selected before closing, r=split-view, tabs, workspaces

This commit is contained in:
Mr. M
2025-04-15 16:28:10 +02:00
parent 6cca084e05
commit 3d80a8aa39
6 changed files with 50 additions and 47 deletions

View File

@@ -90,6 +90,10 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
this.initializeContextMenu();
this.insertIntoContextMenu();
window.addEventListener('AfterWorkspacesSessionRestore', this.onAfterWorkspaceSessionRestore.bind(this), {
once: true,
});
// Add drag over listener to the browser view
if (Services.prefs.getBoolPref('zen.splitView.enable-tab-drop')) {
const tabBox = document.getElementById('tabbrowser-tabbox');