Closed Bug 1871375 Opened 1 year ago Closed 1 year ago

Firefox titlebar (along with tabs) on Windows fades excessively when not focused

Categories

(Firefox :: Theme, defect)

defect

Tracking

()

VERIFIED FIXED
123 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox121 --- unaffected
firefox122 --- verified
firefox123 --- verified

People

(Reporter: mak, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(13 files)

137.22 KB, image/gif
Details
47.66 KB, image/gif
Details
120.27 KB, image/gif
Details
101.07 KB, image/gif
Details
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
36.45 KB, image/png
Details
28.23 KB, image/png
Details
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

After the changes in Bug 1870100, now the whole titlebar, including tabs, fades when the window is not focused.
This may be expected (not sure), but the effect is excessive compared to other apps (e.g. VS Code).

This makes it look like Firefox is frozen.

I'll post some gifs soon.

Attached image firefox_fade.gif
Attached image vscode_fade.gif
Attached image edge_fade.gif

It is expected. The .6 is historical / the opacity that Windows used to use for text yada yada. Using something like .75 or .8 should be fine.

So on Linux, gtk uses .5 opacity, so current behavior doesn't look so out of place. On macOS I'm not sure, gotta check.

Attached image onenote_fade.gif
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)

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

See comment for context.

This is just drive-by clean-up while I was looking into the windows titlebar
buttons.

.titlebar-color is only used for toolbars here:

https://searchfox.org/mozilla-central/rev/8461ad1fc943ac560414322b66de5929ef10f706/browser/themes/shared/browser-shared.css#179

Depends on D197076

This is a bit subtle but I think it's worth it. The frame colors are
changed from hex to rgb to make the parallel with browser-custom-colors
clearer.

Depends on D197077

(Screenshot from Julian). The titlebar behaves the same too, fwiw, but the sidebar is relevant too since it has colored icons etc.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d79ff58c3ffc Fade the titlebar less on Windows. r=dao,desktop-theme-reviewers https://hg.mozilla.org/integration/autoland/rev/abe6ed58f839 Don't double-fade the titlebar buttons on Windows. r=dao,desktop-theme-reviewers https://hg.mozilla.org/integration/autoland/rev/71d4c5581b64 Remove unused titlebar-color class in titlebar-items. r=dao
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f405147cfcf Provide some subtle color feedback on inactive windows for our default themes. r=dao,desktop-theme-reviewers

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox122 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Comment on attachment 9369863 [details]
Bug 1871375 - Remove unused titlebar-color class in titlebar-items. r=dao

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • 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): Simple CSS tweak.
  • String changes made/needed: none
  • Is Android affected?: No
Flags: needinfo?(emilio)
Attachment #9369863 - Flags: approval-mozilla-beta?
Attachment #9369861 - Flags: approval-mozilla-beta?
Attachment #9369862 - Flags: approval-mozilla-beta?

:emilio can you confirm only 3 out of the 4 patches are required to uplift? (just double checking)

Flags: needinfo?(emilio)

Yes, that was intentional, only 3 patches fix the regression. The other is a harmless tweak, which can be uplifted if wanted, but it's technically unrelated to the regression.

Flags: needinfo?(emilio)

:emilio there are conflicts when grafting to beta caused by Bug 1870803

Flags: needinfo?(emilio)
Attachment #9370618 - Flags: approval-mozilla-beta?
Attachment #9370619 - Flags: approval-mozilla-beta?

This is just drive-by clean-up while I was looking into the windows titlebar
buttons.

.titlebar-color is only used for toolbars here:

https://searchfox.org/mozilla-central/rev/8461ad1fc943ac560414322b66de5929ef10f706/browser/themes/shared/browser-shared.css#179

Depends on D197076

Original Revision: https://phabricator.services.mozilla.com/D197077

Depends on D197459

Attachment #9370620 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • User impact if declined: Comment 0
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Needs manual QE test: yes
  • Code covered by automated testing: no
  • String changes made/needed: none
  • Is Android affected?: no
  • Explanation of risk level: Trivial CSS change.
  • Fix verified in Nightly: yes
Flags: qe-verify+

(In reply to Donal Meehan [:dmeehan] from comment #21)

:emilio there are conflicts when grafting to beta caused by Bug 1870803

Ok, provided rebased versions, see above.

Flags: needinfo?(emilio)
Attachment #9370620 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9370619 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9370618 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9369861 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Attachment #9369862 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Attachment #9369863 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
QA Whiteboard: [qa-triaged]

I've looked at this bug and verified the fix on latest Beta 122.0b5 and Nightly 123.0a1 with Win 11. It seems that the fading effect is reproducing on Beta on a sublte way (expected), but the fading effect is the same as before the fix on Nightly 123.0a1 (I'm seeing what screenshot form comment 1 captures).

Emillio, we've also talked a bit on slack about this. I've made a screenshot (see here) comparing two Nightly builds, before and after the fix, where I cannot see any differences. Can you please take a look?

Flags: needinfo?(emilio)

(In reply to Ciprian Georgiu, Desktop QA from comment #28)

Emillio, we've also talked a bit on slack about this. I've made a screenshot (see here) comparing two Nightly builds, before and after the fix, where I cannot see any differences. Can you please take a look?

FWIW, I can see the difference. Seems to work as expected.

You're looking at the effect duration, but you should look at how much it fades. This bug is specially noticeable on the titlebar buttons. But yeah I just checked and it seems to work as expected on b5

Flags: needinfo?(emilio)

Thank you! Verified as fixed on Win 11 x64 with latest Beta 122.0b6 and Nightly 123.0a1.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: