Firefox becomes unusable when adjusting window size

Bug #1979891 reported by Christopher Beland
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Expired
Unknown
firefox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

OS version: Ubuntu 22.04 LTS
Firefox version: 1:1snap1-0ubuntu2 - 101.0.1 (64-bit)

Sometimes when I adjust the size of a Firefox window, that window becomes messed up: the contents don't fill the window, not all the controls are visible, and clicks are offset, so if I click on one spot, the window behaves as if I clicked on a different spot (so it's impossible to use Firefox in that window anymore). I seem to remember being able to fix this by dragging and dropping the window onto a different monitor or workspace in the GNOME Activities view, but I'm currently experiencing the problem and that is not helping. I took a screenshot of what's currently going on (attached) which happened when I tried to maximize the window. This is on a laptop with an external monitor that I'm using in portrait mode, via a USB-C connection that's converted to HDMI. I had plugged in to the external monitor a few minutes before this happens, and plugging in or possibly unplugging seems to make this bug more likely. This is a relatively new problem, starting within the last few weeks. (Maybe after I switched to the snap version of Firefox? I guess that was when I upgraded from the previous LTS version of Ubuntu.)

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-40.43-generic 5.15.35
Uname: Linux 5.15.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: unknown
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sat Jun 25 15:23:13 2022
DistUpgraded: 2022-05-27 14:03:05,108 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
DistroCodename: jammy
DistroVariant: ubuntu
DkmsStatus:
 virtualbox/6.1.32, 5.15.0-39-generic, x86_64: installed
 virtualbox/6.1.32, 5.15.0-40-generic, x86_64: installed
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Dell UHD Graphics 620 [1028:07e6]
InstallationDate: Installed on 2018-11-23 (1309 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: Dell Inc. XPS 13 9370
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-40-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to jammy on 2022-05-27 (29 days ago)
dmi.bios.date: 03/22/2022
dmi.bios.release: 1.19
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.19.0
dmi.board.name: 0H0VG3
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.19.0:bd03/22/2022:br1.19:svnDellInc.:pnXPS139370:pvr:rvnDellInc.:rn0H0VG3:rvrA00:cvnDellInc.:ct10:cvr:sku07E6:
dmi.product.family: XPS
dmi.product.name: XPS 13 9370
dmi.product.sku: 07E6
dmi.sys.vendor: Dell Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.1-1ubuntu2.1
version.libgl1-mesa-glx: libgl1-mesa-glx 22.0.1-1ubuntu2.1
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2build3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Christopher Beland (cbeland) wrote :
affects: ubuntu → xorg (Ubuntu)
summary: - Firefox becomes unusable when adjusting window size
+ Firefox becomes unusable when adjusting window size [Wayland]
affects: xorg (Ubuntu) → firefox (Ubuntu)
summary: - Firefox becomes unusable when adjusting window size [Wayland]
+ Firefox becomes unusable when adjusting window size
Revision history for this message
Christopher Beland (cbeland) wrote :

Today I noticed that the scroll bars stopped sliding smoothly a bit before I started having this problem. I could click, hold, and move to the desired part of the page, but while doing that there was no animation showing this was happening. I also noticed that hovering over a hyperlink stopped causing the URL to show up at the bottom of the screen. Rebooting fixed these problems just as it fixed the distorted window content problem.

Revision history for this message
Christopher Beland (cbeland) wrote :

FTR, I'm currently experiencing problems with scroll bars and not seeing URLs upon hover, and also the mouse cursor sometimes disappearing (like on a YouTube video). I used Zoom in-browser earlier today. I have my external monitor plugged in, but haven't plugged or unplugged it since rebooting. Not currently experiencing bad window contents, even when I move windows to a new workspace and maximize.

Revision history for this message
Christopher Beland (cbeland) wrote :

Aha! While experiencing the other UI weirdness, unplugging my external monitor, forcing all windows to redraw onto my laptop monitor, immediately caused the distorted window content problem. Restarting Firefox without rebooting fixes both problems.

Revision history for this message
Christopher Beland (cbeland) wrote :

I recently upgraded to Firefox 102.0 (64 bit) canonical-002-1.0, and am still experiencing these problems.

Revision history for this message
Christopher Beland (cbeland) wrote :

Still happening with version 103.0.02.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Sorry for the lack of feedback until now. This sounds like a potential upstream issue. Would you mind filing it at https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox, and sharing the link to the upstream bug here? Thanks!

Revision history for this message
In , Christopher Beland (cbeland) wrote :

Created attachment 9294363
about:support.json

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

Steps to reproduce:

Upgraded to snap version of Firefox on Ubuntu, used browser normally.

Actual results:

After a while, scroll bars stop sliding smoothly. I can click on the slider, hold, and move to the desired part of the page, but while doing that there is no animation showing what I'm doing. Hovering over a hyperlink no longer causes the URL to show up at the bottom of the screen. Then when I adjust window size, sometimes the window fails to render inside its boundaries properly. In particular, if I unplug my external monitor (which is in portrait orientation and connected to my laptop via a USB-C port that's converted to HDMI) this forces Firefox windows to redraw on my built-in monitor (which is in landscape orientation) and I immediately experience problems with windows not rendering in their boundaries properly. When a window is in this maladjusted state, the contents don't fill the window, not all the controls are visible, and clicks are offset, so if I click on one spot, the window behaves as if I clicked on a different spot (so it's impossible to use Firefox in that window anymore).

Not all windows are broken, so I can fix this problem for a given window by moving all its tabs to a new window, one by one. Restarting Firefox cures this problem for all windows.

Expected results:

No rendering problems.

FTR, originally reported here, and I was asked to re-report to mozilla.org: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1979891

Revision history for this message
Christopher Beland (cbeland) wrote :
Revision history for this message
In , Release-mgmt-account-bot (release-mgmt-account-bot) wrote :

The [Bugbug](https://github.com/mozilla/bugbug/) bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks!

Changed in firefox:
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
Arutyun (arutyun-akopov) wrote :

I have the same problem

Revision history for this message
In , Arutyun (arutyun-akopov) wrote :

I have the same problem

Revision history for this message
In , Stransky (stransky) wrote :
Revision history for this message
In , Release-mgmt-account-bot (release-mgmt-account-bot) wrote :

Redirect a needinfo that is pending on an inactive user to the triage owner.
:stransky, since the bug has recent activity, could you please find another way to get the information or close the bug as `INCOMPLETE` if it is not actionable?

For more information, please visit [BugBot documentation](https://wiki.mozilla.org/BugBot#inactive_ni_pending.py).

Changed in firefox:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.