Open Bug 1928881 Opened 1 year ago Updated 1 year ago

Title bar changes color from light to dark when browser is started in PBM

Categories

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

Firefox 133
defect

Tracking

()

Tracking Status
firefox-esr128 --- unaffected
firefox132 --- unaffected
firefox133 --- wontfix
firefox134 --- fix-optional
firefox135 --- fix-optional

People

(Reporter: goodvin, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

Start Firefox with -private-window parameter on Windows 10.

Actual results:

Browser starts in PBM mode. Title bar is drawn with light Windows color. After the browser window switches focus to another app or a dialog is opened, the color of the title bar is permanently switches to dark. See attached images.

Expected results:

Browser should start and stay with the same title bar color while it runs.

This could be a regression from the latest changes to the Skeleton UI in Bug 1925577.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

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

I can reproduce, with the following setup:

  • Firefox is using the system theme;
  • browser.tabs.inTitlebar is 0; and
  • under Windows Settings > Personalization > Colors,
    • "default app mode" is set to "Light"; and
    • the option to show the accent color on "Title bars and window borders" is not checked.

It doesn't reproduce directly under mozregression, but it appears to actually be due to bug 1923334 — prior thereto, private browsing's "dark mode" state did not override the titlebar. Perhaps that was a bug?

Regardless, pinging :emilio as author of the regressing patch.

Severity: -- → S3
Flags: needinfo?(emilio)
Keywords: regression
Priority: -- → P3
Regressed by: 1923334

Yep, I the right/expected behavior there is that the titlebar is dark, not light.

Can y'all reproduce on Windows 11? It doesn't seem to repro there, afaict, and I only have Windows 11 handy right now...

Maybe we need something like extra invalidation there after the DWM calls if the window has already been shown?

Flags: needinfo?(emilio) → needinfo?(rkraesig)

I also don't appear to be able to repro on Win11.

(Tests with the above patch will be discussed in the associated Phabricator review.)

Flags: needinfo?(rkraesig)

I can check the fix locally on Win10 if there is a zip build to test.

(In reply to Walter K. from comment #8)

I can check the fix locally on Win10 if there is a zip build to test.

There is — but I've tested it already, and the patch had no visible effect.

Status: UNCONFIRMED → NEW
Ever confirmed: true

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

Hey Emilio, I am the REO for FX133. I see you provided a blind attempt? patch. The last chance for Beta uplifts is on the 14th/15th this week. Do you think this is important to get fixed, or should we mark it as fix-optional?

Flags: needinfo?(emilio)

I can't reproduce this locally, so this is hard to fix for me at least. That said, this seems relatively low severity, as it needs a number of non-default configurations (always-on private browsing mode, titlebar shown), plus it is an improvement from the pre-regression behavior in a way (see comment 4).

So tldr I think this is fix-optional.

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: