Closed Bug 1558065 Opened 6 years ago Closed 4 years ago

[X11][Basic] Titlebar has sharp white corners instead of rounded

Categories

(Core :: Widget: Gtk, defect, P3)

67 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1460959
Tracking Status
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- fix-optional

People

(Reporter: carlosjosepita, Assigned: stransky)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36

Steps to reproduce:

Install firefox 67.0.1 in Ubuntu 19.04 or Arch Linux. Set Yaru or Adwaita-dark gtk themes. Remove titlebars from firefox. Look at the headerbar top edges.

Actual results:

The edges should be rounded in these themes. Nevertheless Firefox shows pointy edges. Much worse, they are of a different color than the rounded part (which is very notorious with dark themes, specially Yaru). This has been reported, fixed, broken again, reported again, fixed again and, apparently, broken again now (67).

Expected results:

Rounded edges as the theme require.

TBH these recurring regressions surprise me because Yaru+Ubuntu and Adwaita+Gnome should be important targets for Firefox.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Which DE do you use? Gnome-shell or something else? Also do you run Wayland or X11 session? All those are factors due to various Gtk bugs.

Blocks: gtktitlebar
Flags: needinfo?(carlosjosepita)
Priority: -- → P3

I see this on Ubuntu 19.04 with X11 and Basic compositor but CSD is not default-enabled indicating it is not well supported on this configuration. It can be fixed by turning on OpenGL (layers.acceleration.force-enabled = true) or WebRender (gfx.webrender.all = true) or using Wayland.

I can confirm I have the same issue.

Manjaro GNOME, X11
Firefox 67.0.2, fresh profile

That's weird as shape mask should be used there. Can you attach output of "env | grep XDG" and also your about:config?

Assignee: nobody → stransky

Also I expect it's still broken with latest nightly, right?

Flags: needinfo?(ke5trel)

Comment 2 is still applicable with latest Nightly 71.0a1 (2019-10-03).

XDG is just stock x11 ubuntu:GNOME and the prefs.js produced by a new profile contains nothing relevant.

XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_MENU_PREFIX=gnome-
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_VTNR=2
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/var/lib/snapd/desktop
Flags: needinfo?(ke5trel)

It appears the shape mask was intentionally disabled on X.

and disable titlebar X shape mask on mutter/X.org

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=69f963484c0750fcaf37e151b5c910f7ebff9c25&tochange=dbf19d7364137fd04c36f04086f3445c020d2c99

Regressed by Bug 1530625.

Manually creating mozilla.widget.use-argb-visuals = true makes the corners transparent.

Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Ever confirmed: true
Keywords: regression
Regressed by: 1530625
Summary: [re-regression] Rounded corners not working in CSD headerbar → [X11][Basic] Titlebar has sharp white corners instead of rounded

Yes, but mozilla.widget.use-argb-visuals = true also introduces Bug 1516224. But maybe Bug 1516224 is not longer an issue with Bug 1578464 checked in.

See Also: → 1516224

Marking as fix-optional for 71 as we are entering the beta cycle. I would consider a safe patch for uplift in early betas though.

I'll look at it. We need to make sure it works under X11 and XWayland on Gnome.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(carlosjosepita)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: