Open Bug 1736107 Opened 3 years ago Updated 2 years ago

session fails to restore when quiting browser via ctrl+q in standalone window manager on Arch Linux. Session only restores if manually pressing the x button

Categories

(Firefox :: Session Restore, defect)

Firefox 91
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: christopherbui, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

I am on Arch Linux, Kernel 5.14.7, using standalone window Manager Qtile.

Title bar option is checked. Ctrl+q quits browser but session fails to save.

Title bar option is unchecked, thus title bar options is shown. Ctrl+q quits browser but fails to save session. Manually clicking x to exit allows successful restore of session.

History and session restore options are both enabled in both cases.

Actual results:

Session fails to restore using ctrl+q unless manually clicking the exit button in ttile bar.

Expected results:

ctrl+q should be able to quit browser and save session.

Component: Untriaged → Session Restore
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

I could not reproduce this with several different window managers link gnome (ubuntu default), pulse, or Wayland. For some reason, I could not install Qtile on Ubuntu and we don't have an Arch Linux test machine.

Can you please make sure this issue still reproduces when in safe mode?
https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems

This might help determine it is caused by some user data you might have on your profile.

Thank you for your contribution!

Flags: needinfo?(christopherbui)

(In reply to Bodea Daniel [:danibodea] from comment #1)

Yes, I believe Ubuntu has removed Qtile from its repos last time I checked. Installing from source seems to be the only way and that was a bit of a hassle.

Nevertheless, I installed Gnome 40.4 using X11 session and repeated the steps described in initial description of the problem. The failure to restore session bug persists.

A new dynamic I discovered: Quitting firefox via clicking the 'X' button saves the session as previously described. Now, after quitting via 'ctrl+q' and reopening firefox any number of times, successfully restores session. If the 'X' button is not used to quit initially, this does not happen.

Regarding safe mode, I repeated the test cases and what happened in the normal mode also happens in safe mode. I hope this gives further insight into this bug.

Flags: needinfo?(christopherbui)

The severity field is not set for this bug.
:dao, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

I believe I have found the cause of the problem. I did a clean install of Arch Linux and Gnome Xorg along with Firefox. The restore session worked normally via ctrl+q and clicking the 'X' button.

Then, when I installed Librewolf, the failure to save session occurs. Session only saves via the described actions above. In my initial encounter with this bug, I had Firefox and Librewolf both installed. They should and I thought worked independently from on another as they share different config and profile folders.

But given that Librewolf is a fork of Firefox, the 2 existing on the same machine seems to cause an issue. I don't know what exactly causes this bug between the two browsers, but I just know that having Librewolf and Firefox installed at the same time causes it.

So it seems that there is no bug with Firefox by itself. I welcome any feedback on whether this case should be closed.

Thanks to everyone who looked into this.

I still couldn't reproduce this issue while having LibreWolf installed or even opened, In Ubuntu 20.04.3 LTS with Firefox Release v95.0.2 using xwayland or X11 window protocols.

This could be Arch Linux specific, but we don't have an Arch Linux to test with.

QA Whiteboard: QA-not-reproducible
You need to log in before you can comment on or make changes to this bug.