7

I have a problem Mozilla Firefox hanging on Ubuntu 22.04 when type Ctrl+S by accident.

And I have to restart the browser to use it.

enter image description here

Artur Meinild
  • 31,035
Alchimie
  • 181

3 Answers3

3

Just noticed this issue on Ubuntu 23.04 shipped Firefox (snap) too. Seems like this bug is still not solved.

What's actually happening is, even though Ctrl+S is pressed only once, for some reason it triggers the "Save Webpage" functionality multiple times. Thus, multiple dialog boxes are opened, one on top of the other. That's why the window shadow looks like a back halo around the window.

To close all of them without closing Firefox, simply click the dialog box to put focus on it, and press and hold the Esc key until all dialog boxes are destroyed.

Or alternatively, you could continuously click the Cancel button in the top-left corner of the dialog box until all of them are destroyed. Note: If you only click the Cancel button once, it does close the top-most visible dialog box, but it looks like nothing happened because there are so many dialog boxes open below it in the same position and size.

1

To close the "window dialog" without close Firefox you can try Ctrl+Shift+W or you can try the xkill command in a terminal which will give you a cursor to click any window

If you want to close the firefox process, you can do it this way: first find its corresponding pid

ps -ef | grep firefox

you have to replace 12345 by the PID you found in the precedent step

copy the PID and kill it like that sudo kill 12345

if it still dont work you can force it this way sudo kill -9 12345

graham
  • 13,061
Saxtheowl
  • 2,394
  • 2
  • 12
  • 22
1

I found this problem is probably because of the conflict between Firefox and Wayland on Ubuntu 22.04.

You can simply append MOZ_ENABLE_WAYLAND=1 to the file /etc/environment to enable Wayland support for Firefox. Method Reference. Sadly I didn't find an easier way to enable this flag in firefox.

And after that, you can also get a much more smooth experience.