mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-28 02:04:18 +00:00
fix: Fixed auto focus not working on popup windows, b=closes #11377, c=common, workspaces
This commit is contained in:
@@ -1044,11 +1044,17 @@ class nsZenWorkspaces {
|
||||
delete this._initialTab;
|
||||
}
|
||||
|
||||
if (gZenVerticalTabsManager._canReplaceNewTab && showed) {
|
||||
BrowserCommands.openTab();
|
||||
} else if (!showed) {
|
||||
gBrowser.selectedBrowser.focus();
|
||||
}
|
||||
// Wait for the next event loop to ensure that the startup focus logic by
|
||||
// firefox has finished doing it's thing.
|
||||
setTimeout(() => {
|
||||
setTimeout(() => {
|
||||
if (gZenVerticalTabsManager._canReplaceNewTab && showed) {
|
||||
BrowserCommands.openTab();
|
||||
} else if (!showed) {
|
||||
gBrowser.selectedBrowser.focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (
|
||||
!gZenVerticalTabsManager._canReplaceNewTab &&
|
||||
|
||||
Reference in New Issue
Block a user