Firefox without titlebar has visual glitches when maximizing/unmaximizing

Bug #1802039 reported by Ian Peters
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
New
Unknown
firefox (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

There is a relatively new feature in Firefox that allows you to hide the title bar (I'm running Firefox 63.0), which is very helpful when you have a low resolution screen. However, when changing the maximization state, some visual gitches occur. I didn't notice this glitching when running Kubuntu or Ubuntu Budgie on two separate systems.

To try this, go to your Firefox Menu, click Customize, and uncheck "Title Bar" at the bottom left. Then unmaximize the window and then remaximize it.

What it's supposed to look like: https://pasteboard.co/HM0h8oB.png
Unmaximized (note the large transparent section): https://pasteboard.co/HM0hpud.png
Remaximized (note the duplicate set of close buttons): https://pasteboard.co/HM0hCf5.png

Also another interesting bug I noticed...if you try to use Firefox in the no titlebar state with the global menu enabled (e.g. Contemporary, Cupertino, or Mutiny panel layouts), the window buttons are not placed correctly, being on the window border.

Systems tried on:

Laptop, Dell Latitude E5430 - Intel Core i3-3120M dual core with hyperthreading, 12 GB DDR3 Memory, Intel 4000 Graphics, Built-in LCD at 1366x768 (screenshots from this system)
Desktop, Lenovo ThinkCentre M79 - AMD A4-6300B 3.7 GHz dual core, 8 GB DDR3 Memory, AMD 8370D Graphics, HP 2009f Monitor at 1600x900

Revision history for this message
In , Alexander Browne (elcste) wrote :

Testing with Ubuntu MATE 18.04(.1) using the default wm/compositor Marco. I've tried Nightly (downloaded from Mozilla), Firefox 61 (the version in the Ubuntu repo), and back to 60 (downloaded from Mozilla) (I think the first version with CSD?).

- With Customize → Title Bar unchecked to enable CSD, make sure Firefox is maximized, then close it.
- Reopen Firefox, and then unmaximize the window. An extra titlebar and border now appears with a transparent border around Firefox window, as show in the first screenshot.
- When you maximize the window, the border goes away, but the extra titlebar remains, as shown in the second screenshot.
- If you close Firefox when it is *not* maximized and reopen it, then it will behave correctly even when maximizing and maximizing — until you close it again maximized and reopen it.

It does not happen every time, i.e. sometimes you can close Firefox maximized and it will behave correctly, but it occurs more often than not. I've tried it on several computers, trying to find a pattern, but I can't find one... It does seem that it happens more often on a computer with HiDPI, but I've only tried one computer like that.

The strangest part is that it doesn't occur at all on my personal computer's main user account, even if I create a new Firefox profile. I mostly use Nightly, so when I first saw it on other computers, I thought it was something that had been fixed between the release version and the Nightly version I was using ;-) But it was reported on the Ubuntu MATE forum, and now I've tried it more and found that it does occur when I create a new user account on my computer, and I've seen it on every other Ubuntu MATE installation I've tried, even with Nightly. (I'm have no idea what setting/tweak I have in my user account that could be affecting it!)

I'm happy to help testing if you let me know how. I can also report it to MATE/Marco if you think that's where the issue is. Thanks for all the work on Firefox CSD!

Revision history for this message
In , Alexander Browne (elcste) wrote :

Created attachment 8999434
1 Window after unmaximizing

Revision history for this message
In , Alexander Browne (elcste) wrote :

Created attachment 8999435
2 Window after re-maximizing

Revision history for this message
In , mkurz (matthias.kurz) wrote :

I experience the same problem with gnome-flashback, see my comment here: https://bugzilla.mozilla.org/show_bug.cgi?id=1408360#c32

Maybe this is somehow related to Bug 1452520?

Revision history for this message
Alexander Browne (elcste) wrote :

I've noticed this and reported it upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1482716

no longer affects: ubuntu-mate
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
In , Stransky (stransky) wrote :

Can you try latest nightly please? Thanks.

Revision history for this message
In , Alexander Browne (elcste) wrote :

I just tried Nightly and I do still see the issue. I tried Ubuntu MATE 18.10 and a daily build of Disco (18.04).

Changed in firefox:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
In , Bug-husbandry-bot (bug-husbandry-bot) wrote :
Revision history for this message
Arshpreet (arsh7) wrote :

Did this bug get fixed?

Changed in firefox (Ubuntu):
importance: Undecided → Low
Revision history for this message
In , Ollihcnivad (ollihcnivad) wrote :

This is still happening in Ubuntu Mate 20.04 with Firefox 85.0. Any updates?

Revision history for this message
In , Alexander Browne (elcste) wrote :

I haven't used MATE for a couple years now, so I'm not sure myself.

Revision history for this message
In , Ian Peters (ipeters61) wrote : Re: [Bug 1802039]

Yeah I've been having trouble with it still in Ubuntu MATE 20.10. Also
appears to be an issue in Vivaldi.

On Mon, Feb 8, 2021 at 3:00 AM Alexander Browne <email address hidden>
wrote:

> I haven't used MATE for a couple years now, so I'm not sure myself.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1802039
>
> Title:
> Firefox without titlebar has visual glitches when
> maximizing/unmaximizing
>
> Status in Mozilla Firefox:
> New
> Status in firefox package in Ubuntu:
> Confirmed
>
> Bug description:
> There is a relatively new feature in Firefox that allows you to hide
> the title bar (I'm running Firefox 63.0), which is very helpful when
> you have a low resolution screen. However, when changing the
> maximization state, some visual gitches occur. I didn't notice this
> glitching when running Kubuntu or Ubuntu Budgie on two separate
> systems.
>
> To try this, go to your Firefox Menu, click Customize, and uncheck
> "Title Bar" at the bottom left. Then unmaximize the window and then
> remaximize it.
>
> What it's supposed to look like: https://pasteboard.co/HM0h8oB.png
> Unmaximized (note the large transparent section):
> https://pasteboard.co/HM0hpud.png
> Remaximized (note the duplicate set of close buttons):
> https://pasteboard.co/HM0hCf5.png
>
> Also another interesting bug I noticed...if you try to use Firefox in
> the no titlebar state with the global menu enabled (e.g. Contemporary,
> Cupertino, or Mutiny panel layouts), the window buttons are not placed
> correctly, being on the window border.
>
> Systems tried on:
>
> Laptop, Dell Latitude E5430 - Intel Core i3-3120M dual core with
> hyperthreading, 12 GB DDR3 Memory, Intel 4000 Graphics, Built-in LCD at
> 1366x768 (screenshots from this system)
> Desktop, Lenovo ThinkCentre M79 - AMD A4-6300B 3.7 GHz dual core, 8 GB
> DDR3 Memory, AMD 8370D Graphics, HP 2009f Monitor at 1600x900
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/firefox/+bug/1802039/+subscriptions
>

Revision history for this message
In , Ali Akbar (aliakbar-m) wrote :

(In reply to ollihcnivad from comment #7)
> This is still happening in Ubuntu Mate 20.04 with Firefox 85.0. Any updates?

The `mate-netbook` is the culprit, removing it (sudo apt remove mate-netbook mate-netbook-common) will fix this.

Changed in firefox:
importance: Medium → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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