Closed Bug 2002986 Opened 1 month ago Closed 1 month ago

Native windows title bar is broken

Categories

(Core :: Widget: Win32, defect)

Firefox 147
Desktop
Windows 11
defect

Tracking

()

VERIFIED FIXED
147 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox145 --- unaffected
firefox146 --- verified
firefox147 + verified

People

(Reporter: alice0775, Assigned: emilio)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(2 files)

Attached image screenshot

Steps to reproduce:

  1. Start latest Nightly build with clean profile
  2. Enable Titlebar
    --- Bug appears #1
  3. Restart the browser
    --- Bug appears #2
  4. Maximize the browser with double-click on the titlebar
    --- Bug apperas #3

Actual results:
#1
No Nightlr icon at the left side
No Windows control buttons at the right most.
No caption text

#2
No caption text
No mouse hover effect over Windows control buttons
Not function minimize, maximize/restore buttons.

See attached screenshot

And
#3
Nightly icon and window control buttons on the title bar are shifted upward, causing the top edge to be cut off.

Regression window:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=1d083dd7a3b058d466ed3aab07299c839bd827a5&tochange=a29551a9685131db14c42468ab28bb3fe8de7ed2

Expected result:
The title bar should appear and work as usual.

Set release status flags based on info from the regressing bug 1993474

:gstoll, since you are the author of the regressor, bug 1993474, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

oops , the Componentis win32 not gtk.

Component: Widget: Gtk → Widget: Win32
OS: Unspecified → Windows 11
Hardware: Unspecified → Desktop
Version: unspecified → Firefox 147
Flags: needinfo?(gstoll) → needinfo?(emilio)

I must've goofed something during testing or so, I pretty explicitly tested native titlebar / fullscreen etc...

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: NEW → ASSIGNED

Changing 146 to unaffected, Bug 1993474 was only on the beta branch for a short time and never made a build.

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dd4460727998 https://hg.mozilla.org/integration/autoland/rev/3a1c00fdacc9 Use IAppWindowTitlebar::ResetToDefault() for non-collapsed titlebar. r=win-reviewers,gstoll

I wonder if this might fix bug 1996961 too…

See Also: → 1996961
Blocks: 2003032
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Severity: -- → S3
Duplicate of this bug: 1996961

Comment on attachment 9529752 [details]
Bug 2002986 - Use IAppWindowTitlebar::ResetToDefault() for non-collapsed titlebar. r=#win-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: needed for the regressor to be uplifted as well.
  • 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: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small follow-up to the previous patch.
  • String changes made/needed: none
  • Is Android affected?: No
Attachment #9529752 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9529752 [details]
Bug 2002986 - Use IAppWindowTitlebar::ResetToDefault() for non-collapsed titlebar. r=#win-reviewers

Approved for 146.0rc1

Attachment #9529752 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [uplift][qa-ver-needed-c147/b146]

Verified on Windows 11x64, using the latest Nightly 147.0a1 (2025-12-01), and latest Beta 146.0 (RC1). The issue no longer reproduces.
The Title Bar is displayed correctly, even after restart, and minimize/maximize. The Windows control buttons have hover effect and are working as exected. The context menu for the Title Bar is displayed and options can be selected.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-ver-needed-c147/b146] → [uplift][qa-ver-done-c147/b146]
Flags: qe-verify+
QA Contact: lburuian

This is being reverted in 146.0rc2 along with bug 1993474 for causing bug 2004018. It will remain in 147.

Duplicate of this bug: 2004306
Blocks: 1996961
No longer duplicate of this bug: 1996961
See Also: 1996961

Hello,
This specific issue was only reproducible for the initial fix made for 1993474, and it was resolved in the next fix.
Since the fix for 1993474 has been reverted in 146.0rc2 this is no longer an issue.
Thank you.

No longer blocks: 2003032

Firefox 146 should have been fixed when bug 1993474 was backed out in 146.0rc2.

No longer duplicate of this bug: 2004306

Marking this bug as Verified for 146 since the code for it has been reverted in 146.0rc2.
Thank you.

Duplicate of this bug: 2006282
Duplicate of this bug: 2006515
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: