[Linux/Gtk] Enable hidden system titlebar by default

RESOLVED FIXED in Firefox 66



5 months ago
20 days ago


(Reporter: stransky, Assigned: stransky)


(Blocks: 1 bug, {feature})

Dependency tree / graph

Firefox Tracking Flags

(relnote-firefox ?, firefox64 wontfix, firefox65 wontfix, firefox66 fixed)



(1 attachment)

We may hide system titlebar by default at least on some well tested and recent enough platforms (Gnome derivates and Gtk+ > 3.20).
Created attachment 9035289 [details]
Bug 1490344 - [Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao

This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).

It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.

It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.
Assignee: nobody → stransky
Keywords: checkin-needed

Comment 4

a month ago

Pushed by apavel@mozilla.com:
[Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao

Keywords: checkin-needed

Should be fixed now, Thanks.

Flags: needinfo?(stransky)
Keywords: checkin-needed

Comment 8

a month ago

Pushed by cbrindusan@mozilla.com:
[Linux/Gtk] Enable hidden system titlebar by default on Gnome, r=dao

Keywords: checkin-needed

Comment 9

a month ago
Last Resolved: a month ago
status-firefox66: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
status-firefox64: affected → wontfix
status-firefox65: --- → wontfix
Depends on: 1521010
Depends on: 1521012

Release Note Request (optional, but appreciated)
[Why is this notable]: User facing change
[Affects Firefox for Android]: No, Linux only
[Suggested wording]: System titlebar is hidden by default to match Gnome guideline (I invented the last one)
[Links (documentation, blog post, etc)]:

relnote-firefox: --- → ?
No longer depends on: 1521010
Depends on: 1519606

I went with this wording for Nightly notes:
On Linux the Title Bar is now merged with the Tab Bar by default. This new behavior can be modified via the Customize… item in the main menu.

After this change, whenever I start Firefox, the right-click dropdown menu and the autoscroll wheel appear about a titlebar's height below and to the right of the cursor position. It corrects itself once resize the window.

Bug 1521175 describes a regression from this change.

You need to log in before you can comment on or make changes to this bug.