Closed Bug 1507423 Opened 6 years ago Closed 5 years ago

[CSD] Titlebar has unnecessary 7px left/right border that is undraggable with light/dark theme

Categories

(Core :: Widget: Gtk, defect)

65 Branch
Unspecified
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla66
Tracking Status
firefox-esr60 --- unaffected
firefox64 --- unaffected
firefox65 --- verified
firefox66 --- verified

People

(Reporter: ke5trel, Assigned: stransky)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(4 files)

The #titlebar has a 7px border on the left and right side that it did not have before, particularly noticeable on maximized windows.

Ubuntu 18.10 with default Yaru theme.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=fe0444b43773290c07c42ff9d648db66d28f0abd&tochange=7c2e45e82f07af5f97facb545336c4c4894c53b0

Regressed by Bug 1506248.
Attached image titlebar-space.png
This border region is not draggable with the light/dark theme unlike the rest of the titlebar.
Blocks: gtktitlebar
Summary: [CSD] Titlebar has unnecessary 7px left/right border → [CSD] Titlebar has unnecessary 7px left/right border that is undraggable with light/dark theme
Yes, I can see that too. Mike, are you aware of that? Shall I look at it?
Flags: needinfo?(mconley)
(In reply to Martin Stránský [:stransky] from comment #3)
> Yes, I can see that too. Mike, are you aware of that? Shall I look at it?

Huh. :/ Yes, if you could look at this, that might be best. Perhaps we the solution we ended up originally is best, and we can re-land some or all of the patches that were backed out in bug 1506248?
Flags: needinfo?(mconley) → needinfo?(stransky)
Assignee: nobody → stransky
Flags: needinfo?(stransky)
Pushed by ccoroiu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ce0ec048b624
Don't return border/padding from MOZ_GTK_HEADER_BAR/MOZ_GTK_HEADER_BAR_MAXIMIZED, r=mconley
https://hg.mozilla.org/integration/autoland/rev/f36e19a20544
Implement StyleAppearance::MozWindowButtonBox on widget/gtk, r=mconley
https://hg.mozilla.org/integration/autoland/rev/9018fc1a4598
Don't draw StyleAppearance::MozWindowButtonBox on Linux/Gtk, r=mconley
Keywords: checkin-needed
Please nominate this for Beta approval when you get a chance.
Flags: qe-verify+
Flags: needinfo?(stransky)
Keywords: regression
Comment on attachment 9030682 [details]
Bug 1507423 - Don't return border/padding from MOZ_GTK_HEADER_BAR/MOZ_GTK_HEADER_BAR_MAXIMIZED, r=mconley

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: Bug 1506248

User impact if declined: When system titlebar is disabled, the titlebar has a 7px border on the left and right side that it did not have before, particularly noticeable on maximized windows.

Is this code covered by automated tests?: No

Has the fix been verified in Nightly?: Yes

Needs manual test from QE?: Yes

If yes, steps to reproduce: Disable system titlebar at Customize, maximize firefox window and check if there's the space between tab and firefox border:
https://bug1507423.bmoattachments.org/attachment.cgi?id=9025301

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): Linux specific, live when system titlebar is disabled (this is not a default).

String changes made/needed: none
Flags: needinfo?(stransky)
Attachment #9030682 - Flags: approval-mozilla-beta?
Comment on attachment 9030683 [details]
Bug 1507423 - Implement StyleAppearance::MozWindowButtonBox on widget/gtk, r=mconley

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: Bug 1506248

User impact if declined: User impact if declined: When system titlebar is disabled, the titlebar has a 7px border on the left and right side that it did not have before, particularly noticeable on maximized windows.

Is this code covered by automated tests?: No

Has the fix been verified in Nightly?: Yes

Needs manual test from QE?: Yes

If yes, steps to reproduce: Disable system titlebar at Customize, maximize firefox window and check if there's the space between tab and firefox border:
https://bug1507423.bmoattachments.org/attachment.cgi?id=9025301

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): Why is the change risky/not risky? (and alternatives if risky): Linux specific, live when system titlebar is disabled (this is not a default).

String changes made/needed: none
Attachment #9030683 - Flags: approval-mozilla-beta?
Comment on attachment 9030684 [details]
Bug 1507423 - Don't draw StyleAppearance::MozWindowButtonBox on Linux/Gtk, r=mconley

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: Bug 1506248

User impact if declined: User impact if declined: When system titlebar is disabled, the titlebar has a 7px border on the left and right side that it did not have before, particularly noticeable on maximized windows.

Is this code covered by automated tests?: No

Has the fix been verified in Nightly?: Yes

Needs manual test from QE?: Yes

If yes, steps to reproduce: Disable system titlebar at Customize, maximize firefox window and check if there's the space between tab and firefox border:
https://bug1507423.bmoattachments.org/attachment.cgi?id=9025301

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): Why is the change risky/not risky? (and alternatives if risky): Linux specific, live when system titlebar is disabled (this is not a default).

String changes made/needed: none
Attachment #9030684 - Flags: approval-mozilla-beta?
Verified as fixed on Firefox Nightly 66.0a1 (2018-12-21) on Ubuntu 18.10 (64-bit).
Status: RESOLVED → VERIFIED
Comment on attachment 9030682 [details]
Bug 1507423 - Don't return border/padding from MOZ_GTK_HEADER_BAR/MOZ_GTK_HEADER_BAR_MAXIMIZED, r=mconley

[Triage Comment]
Removes extra padding from the tab bar when the system titlebar is disabled on Linux. Approved for 65.0b7.
Attachment #9030682 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9030683 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9030684 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
I can confirm also the fix on Beta, I’ve tested with Fx 65.0b7 (20181223195937) on Ubuntu 18.04.1 X64.
Flags: qe-verify+
Depends on: 1521022
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: