mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-10 03:15:30 +02:00
Refactor ZenPinnedTabManager and ZenUIManager for improved tab closing behavior and URL bar handling
This commit is contained in:
parent
d9c8609d43
commit
88fbae4bec
7 changed files with 62 additions and 50 deletions
|
@ -1,5 +1,5 @@
|
|||
diff --git a/browser/components/tabbrowser/content/tab.js b/browser/components/tabbrowser/content/tab.js
|
||||
index d41c486c02a6f09dcff5741a59ad8b617294c481..855152a13afdf58433c228e3675e2e0eebe3892e 100644
|
||||
index d41c486c02a6f09dcff5741a59ad8b617294c481..44535569b609d9bcd09f10e46e3161ce0a331c30 100644
|
||||
--- a/browser/components/tabbrowser/content/tab.js
|
||||
+++ b/browser/components/tabbrowser/content/tab.js
|
||||
@@ -37,6 +37,7 @@
|
||||
|
@ -33,7 +33,7 @@ index d41c486c02a6f09dcff5741a59ad8b617294c481..855152a13afdf58433c228e3675e2e0e
|
|||
}
|
||||
+
|
||||
+ if (event.target.classList.contains("tab-reset-button")) {
|
||||
+ gZenPinnedTabManager._resetTabToStoredState(this);
|
||||
+ gZenPinnedTabManager._onCloseTabShortcut(event, this, 'unload-switch');
|
||||
+ gBrowser.tabContainer._blockDblClick = true;
|
||||
+ }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue