"Add tab to taskbar" creates duplicate tabs under certain conditions
Categories
(Firefox :: Web Apps, defect)
Tracking
()
People
(Reporter: regspam, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0
Steps to reproduce:
- Navigate to about:preferences#general and make sure "Open previous windows and tabs" is enabled.
- Make sure you have only one Firefox window open, with only one tab, and that tab displays a remote page.
- Click on the "Add tab to taskbar" icon at the right of the address bar. The tab moves to the taskbar, as expected.
- Press Ctrl+t.
Actual results:
A new Firefox window opens. It has two tabs: an empty one, and one with the remote page.
Expected results:
The window should only have one empty tab.
The window should only have one empty tab.
Sorry, that sounds ambiguous, I meant "The window should only have one tab: the empty one".
Comment 2•6 months ago
|
||
Interesting, thanks for the report! I can reproduce on my machine.
I'm not sure whether this is intended or not. If you think of it as 'opening a Firefox tab from a Web app starts Firefox, which restores your tabs,' then it does make sense. Also, I'm not sure when the tabs would be restored if this didn't happen. Maybe if you press Ctrl-N after, I guess?
I'll ask internally and see what's supposed to happen, this surprised me too when I first reproduced it.
Comment 3•6 months ago
|
||
Okay, I think I lost track of what the bug report is saying. Yeah, it doesn't make sense to restore the tab, since you moved it to the taskbar! The rest of the tabs will still be restored, which probably makes sense.
(On a technical level, TaskbarTabsWindowManager.replaceTabWithTaskbarTab needs to remove the tab from session storage if it's the last tab in a window.)
Updated•6 months ago
|
Description
•