[upstream,regression] Firefox does not save tabs when quitting with Ctrl+Q
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Fix Released
|
Unknown
|
|||
firefox (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
1) % lsb_release -rd
Description: Ubuntu 20.04.3 LTS
Release: 20.04
2) % apt-cache policy firefox
firefox:
Установлен: 93.0+build1-
Кандидат: 93.0+build1-
Таблица версий:
*** 93.0+build1-
500 http://
500 http://
100 /var/lib/
75.
500 http://
3) After start Firefox expected to restore previous session
4) Firefox start with new tab
If I close Firefox by Ctrl-Q with opened tabs and start it again Firefox opens with one new tab. When profile was recreated issue was gone but appeared again after Firefox was closed by Ctrl-W.
The option "Restore previous session" is on. Without extension behavior the same. I'm not sure but this begins after last update of Firefox
Changed in firefox: | |
status: | Unknown → Fix Released |
Changed in firefox (Ubuntu): | |
status: | Fix Committed → Fix Released |
Created attachment 9237163
Spec for dialog
Right now, `browser. tabs.warnOnClos e` governs a warning that appears when closing multiple tabs.
We'll want a separate pref, `browser. warnOnQuitShort cut`, that defaults to true on macOS and Linux, and false on Windows.
We'll want to check this pref when the user quits the browser using the `<key id="key_ quitApplication ">`.
Right now, the quit warnings hook into this BrowserGlue.jsm code: https:/ /searchfox. org/mozilla- central/ rev/12770bd668c 0a6bdaa8eb96ad9 507c6febe8d23d/ browser/ components/ BrowserGlue. jsm#2779 .
For the telemetry work in an earlier bug (bug 1712306), we added `_quitSource` on the BrowserGlue object; we can check if it is `shortcut` to see if that was the case, and if so, show an appropriate warning prompt. If we show this prompt, we should not also show the "regular" quit / close-multiple tabs prompt, even if that would otherwise have been shown; there's no point confirming it twice!
We should be able to have the single `confirmEx` call for quitting use either the quit shortcut text and checkbox text, or the "multiple tabs" version and checkbox text (x-ref bug 1724964), depending on our reason for showing the warning.
To include the shortcut text in the text, we'll want to grab the `key` element in one of the open windows for the shortcut, and use `ShortcutUtils. prettifyShortcu t` to get text for the shortcut, that we can then insert in the message we display.
Note that this shortcut warning applies even if there is only 1 tab (`pagecount == 1` in the BrowserGlue code, where it currently returns early if `pagecount < 2`).