firefox gets hidden behind the top bar in Ubuntu 21.10

My Firefox windows continuously get hidden behind the top bar of ubuntu 21.10. I can get it back to normal by changing the windowsize twice (superkey+left arrow, and than superkey+upper arrow). Is there a way to get this back to normal. I have tried to reinstall firefox but that did not work.


This was a known problem and the solution is stated in Ubuntu's release notes.

The firefox snap has a known renderer process crash when switching VTs or resuming from suspend. This is caused by the same issue that renders WebGL non-functional in Wayland sessions. The problem is fixed in the upcoming 94.0 release (beta at the time impish is released), so a possible workaround is to temporarily switch the snap to the beta channel:

snap refresh firefox --beta