Closed Bug 1961031 Opened 9 months ago Closed 8 months ago

Some grayed or faded out favicons difficult to view with dark theme after tabs are discarded or unloaded

Categories

(Firefox :: Tabbed Browser, defect)

Firefox 139
defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox137 --- unaffected
firefox138 --- unaffected
firefox139 --- fixed
firefox140 --- fixed

People

(Reporter: anonymous30901032, Assigned: gstoll)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(7 files)

Attached video unloading.mkv β€”

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

Steps to reproduce:

  1. Make sure browser.tabs.fadeOutExplicitlyUnloadedTabs is set to true in about:config (Firefox Nightly).
  2. Select Themes in about:addons and enable Dark theme.
  3. Install Auto Tab Discard ( https://addons.mozilla.org/en-US/firefox/addon/auto-tab-discard/ ).
  4. Open the Auto Tab Discard Options page, clear the symbol in the option 'Prepend a symbol to the discarded tabs...', and then click the 'Save Options' button.
  5. Load the following sites in new tabs and then pin them: https://tuta.com , https://www.netflix.com , https://www.espn.com
  6. Load those sites again in new tabs, but don't pin them.
  7. Create a new tab and leave focus on it.
  8. Discard all other tabs with Auto Tab Discard.
  9. Switch between vertical tabs and horizontal tabs to view the favicons of the discarded tabs, especially the pinned tabs.

Actual results:

Tabs are now grayed out when they are discarded in Firefox 139 ( https://bugzilla.mozilla.org/show_bug.cgi?id=1926973 ).

However, the favicons on some pinned tabs become very difficult to view after they are discarded when vertical tabs and dark theme are enabled (see attached video). They are also difficult to view when using horizontal tabs if the screen brightness is reduced or warmer colors are used to reduce blue light. This can be reproduced by turning on Windows Night Light in Windows 11 or using programs like f.lux, Iris, QRedshift, etc...

Expected results:

If possible, most pinned tabs favicons should be viewable after they are discarded when vertical tabs and dark theme are enabled.

Component: Untriaged → Theme

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

For more information, please visit BugBot documentation.

Flags: needinfo?(gstoll)

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

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

Note that you can trigger this more easily by just loading netflix.com and then right-clicking on the tab and Unloading it. (after turning on Dark theme)

I wonder if we can detect in CSS that a dark theme is being used and turn off the extra grayscale filter in that case. I'll see if that's possible and how much that improves things.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED
Flags: needinfo?(gstoll)
Severity: -- → S4

Another option would be to use filter: grayscale(100%) brightness(20%) invert() for dark mode:
https://searchfox.org/mozilla-central/rev/c5ed4a89fd7a8c878df552e5d53fe50e0088c15b/browser/themes/shared/urlbar-searchbar.css#570,576
but see also emilio's note up above

Oh thanks! I tried it out and the brightness(20%) didn't seem necessary. (and I don't think emilio's note applied because I don't think these are .svg's)

I've attached how this looks in various configurations with this patch.

Attached image horizontal tabs pinned.png β€”
Attached image horizontal tabs unpinned.png β€”
Attached image vertical tabs pinned.png β€”
Attached image vertical tabs unpinned.png β€”

(In reply to Greg Stoll :gstoll from comment #7)

(and I don't think emilio's note applied because I don't think these are .svg's)

Can't websites serve SVGs though?

(In reply to Itiel from comment #13)

(In reply to Greg Stoll :gstoll from comment #7)

(and I don't think emilio's note applied because I don't think these are .svg's)

Can't websites serve SVGs though?

They can, but if I'm reading emilio's note correctly he was saying there might be a better way to do this for SVGs specifically. Since websites can serve multiple kinds of favicons I don't think we can use that better way here.

Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0b7b0476212 make unloaded tab icons more visible for dark themes r=desktop-theme-reviewers,tabbrowser-reviewers,dao,emilio
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch

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

For more information, please visit BugBot documentation.

Flags: needinfo?(gstoll)

firefox-beta Uplift Approval Request

  • User impact if declined: unloaded tab icons will be hard to see in dark mode
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: Just a CSS change that affects unloaded tabs
  • String changes made/needed: no
  • Is Android affected?: no

With the new changes, the favicons on tabs with about URLs (about:debugging, about:addons, about:preferences, about:performance, about:downloads, etc...) may be slightly difficult to view with dark theme when they are faded out (except for vertical pinned tabs). They become even more difficult to view when using a night light program with reduced screen brightness. It might just be the case that there will always be some faded out favicons that are hard to view, but I thought I'd mention it anyways...

Note, it looks like tabs with about URLs can't be manually unloaded, but they are faded out when the browser restores tabs on startup and the tabs aren't automatically loaded (browser.sessionstore.restore_pinned_tabs_on_demand and/or browser.sessionstore.restore_on_demand are true in about:config).

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

(In reply to anon from comment #20)

With the new changes, the favicons on tabs with about URLs (about:debugging, about:addons, about:preferences, about:performance, about:downloads, etc...) may be slightly difficult to view with dark theme when they are faded out (except for vertical pinned tabs). They become even more difficult to view when using a night light program with reduced screen brightness. It might just be the case that there will always be some faded out favicons that are hard to view, but I thought I'd mention it anyways...

Note, it looks like tabs with about URLs can't be manually unloaded, but they are faded out when the browser restores tabs on startup and the tabs aren't automatically loaded (browser.sessionstore.restore_pinned_tabs_on_demand and/or browser.sessionstore.restore_on_demand are true in about:config).

Thanks for the note!

I agree that there are some kinds of favicons that this will make harder to view. I don't have a great solution for that - maybe we can make what the fading out does more configurable somehow?

But in the specific case of about URLs I don't think this will be a problem by default. browser.tabs.fadeOutExplicitlyUnloadedTabs is true by default, which means that only tabs that are explicitly unloaded by the user (and not by session restore) will be faded out. browser.tabs.fadeOutUnloadedTabs controls the behavior of fading all unloaded tabs (including those that were never loaded by session restore), but that will be false by default - we decided that would be too jarring. (although I personally like it and use it on my Firefox :-) )

So with the prefs set to their default values I don't think about pages should ever have the faded favicons.

Flags: needinfo?(gstoll)
Attachment #9484687 - Flags: approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: