Launchpad has imported 13 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=1726736.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2021-08-20T09:52:22+00:00 Gijskruitbosch+bugs wrote:

Created attachment 9237163
Spec for dialog

Right now, `browser.tabs.warnOnClose` governs a warning that appears
when closing multiple tabs.

We'll want a separate pref, `browser.warnOnQuitShortcut`, 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/12770bd668c0a6bdaa8eb96ad9507c6febe8d23d/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.prettifyShortcut` 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`).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/0

------------------------------------------------------------------------
On 2021-08-31T16:38:48+00:00 Enn wrote:

There are three existing preferences related to closing tabs/quitting:

browser.warnOnQuit - hidden preference that overrides all others if false
browser.sessionstore.warnOnQuit - hidden preference that disables warning on 
quit when session store is active
browser.tabs.warnOnClose - disables close tab warning, corresponds to checkbox 
in preferences

Is the intent here (and for the other related bugs) to remove the
'browser.sessionstore.warnOnQuit' preference and use
'browser.tabs.warnOnClose' for closing or quitting without the keyboard
shortcut (close button or quit from the menu), and add a new preference
'browser.warnOnQuitShortcut' for quitting with Ctrl/Cmd+Q?

Will the new 'browser.warnOnQuitShortcut' preference have UI in
preferences?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/1

------------------------------------------------------------------------
On 2021-08-31T16:44:11+00:00 Gijskruitbosch+bugs wrote:

(In reply to Neil Deakin from comment #1)
> There are three existing preferences related to closing tabs/quitting:
> 
> browser.warnOnQuit - hidden preference that overrides all others if false
> browser.sessionstore.warnOnQuit - hidden preference that disables warning on 
> quit when session store is active
> browser.tabs.warnOnClose - disables close tab warning, corresponds to 
> checkbox in preferences
> 
> Is the intent here (and for the other related bugs) to remove the 
> 'browser.sessionstore.warnOnQuit' preference and use 
> 'browser.tabs.warnOnClose' for closing or quitting without the keyboard 
> shortcut (close button or quit from the menu), and add a new preference 
> 'browser.warnOnQuitShortcut' for quitting with Ctrl/Cmd+Q?

Yep, that's all correct. I think my assumption was that we could deal
with the session store pref removal in bug 1724976.

> Will the new 'browser.warnOnQuitShortcut' preference have UI in
preferences?

Yes. The authoritative spec is in figma; I'll add another screenshot for
the preferences portion.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/2

------------------------------------------------------------------------
On 2021-08-31T16:45:00+00:00 Gijskruitbosch+bugs wrote:

Created attachment 9238724
Preference update for the new shortcut-related warning

The expectation is that this warning only shows up on macOS+Linux, with
the relevant shortcut embedded in the message.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/3

------------------------------------------------------------------------
On 2021-09-01T17:40:00+00:00 Enn wrote:

Created attachment 9238974
Bug 1726736, add a separate preference when quitting using the shortcut key, 
and modify the close dialog warning to indicate that the warning only applies 
to keyboard quitting, r=mhowell


Depends on D124221

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/4

------------------------------------------------------------------------
On 2021-09-01T17:40:17+00:00 Enn wrote:

Created attachment 9238975
Bug 1726736, add checkbox to the main preferences page for the confirm on 
pressing the quit keyboard shortcut setting, r=mhowell


Depends on D124222

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/5

------------------------------------------------------------------------
On 2021-09-07T23:28:47+00:00 Enn wrote:

Created attachment 9239948
Bug 1726736, test for quit keyboard shortcut opening confirmation dialog, 
r=mhowell


Depends on D124223

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/6

------------------------------------------------------------------------
On 2021-09-08T12:36:03+00:00 Pulsebot wrote:

Pushed by n...@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ded428a99b80
add a separate preference when quitting using the shortcut key, and modify the 
close dialog warning to indicate that the warning only applies to keyboard 
quitting, r=mhowell
https://hg.mozilla.org/integration/autoland/rev/d648841f25c8
add checkbox to the main preferences page for the confirm on pressing the quit 
keyboard shortcut setting, r=Gijs,fluent-reviewers,preferences-reviewers,flod
https://hg.mozilla.org/integration/autoland/rev/9f39ead09bf3
test for quit keyboard shortcut opening confirmation dialog, r=mhowell

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/7

------------------------------------------------------------------------
On 2021-09-08T21:42:39+00:00 Smolnar wrote:

https://hg.mozilla.org/mozilla-central/rev/ded428a99b80
https://hg.mozilla.org/mozilla-central/rev/d648841f25c8
https://hg.mozilla.org/mozilla-central/rev/9f39ead09bf3

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/8

------------------------------------------------------------------------
On 2021-09-09T11:45:11+00:00 Aryx-bugmail wrote:

Is it intended to have the dialog about closing multiple windows been
shown if the (Windows) user uses menu File > Quit and has automatic
session restore on launch enabled?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/9

------------------------------------------------------------------------
On 2021-09-09T13:14:45+00:00 Enn wrote:

The close multiple tabs/windows warning will appear if 'Confirm before
closing multiple tabs' is checked in preferences when pressing the
window close button or selecting quit/exit from the menu. The session
restore setting no longer has any effect on whether this warning
applies. All of this was done in bug 1724976 however. This bug is about
the separate preference for the keyboard shortcut.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/10

------------------------------------------------------------------------
On 2021-09-14T09:07:42+00:00 Enn wrote:

*** Bug 1692205 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/11

------------------------------------------------------------------------
On 2021-10-25T11:25:49+00:00 Sergiu-negritas wrote:

Hello! I have managed to reproduce the issue with firefox 93.0a1(2021-08-20) on 
Windows 10. I can confirm that the issue is fixed with firefox 94.0b9 and 
95.0a1(2021-10-24) on Windows 10, Ubuntu 20 and macOS 10.15. 
I will update the flags and status of this issue. 

Thank you!

Reply at:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1948652/comments/15


** Changed in: firefox
       Status: Unknown => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1948652

Title:
  [upstream,regression] Firefox does not save tabs when quitting with
  Ctrl+Q

Status in Mozilla Firefox:
  Fix Released
Status in firefox package in Ubuntu:
  Fix Committed

Bug description:
  1) % lsb_release -rd
  Description:  Ubuntu 20.04.3 LTS
  Release:      20.04

  2) % apt-cache policy firefox
  firefox:
    Установлен: 93.0+build1-0ubuntu0.20.04.1
    Кандидат:   93.0+build1-0ubuntu0.20.04.1
    Таблица версий:
   *** 93.0+build1-0ubuntu0.20.04.1 500
          500 http://ua.archive.ubuntu.com/ubuntu focal-updates/main amd64 
Packages
          500 http://security.ubuntu.com/ubuntu focal-security/main amd64 
Packages
          100 /var/lib/dpkg/status
       75.0+build3-0ubuntu1 500
          500 http://ua.archive.ubuntu.com/ubuntu focal/main amd64 Packages

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1948652/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to