Closed Bug 1926973 Opened 1 year ago Closed 9 months ago

Gray out tabs that are explicitly unloaded

Categories

(Firefox :: Tabbed Browser, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: gstoll, Assigned: gstoll)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

This would help visually distinguish them - right now the only way to see if something is unloaded is hovering over a tab and seeing whether there's a visual preview. The Tab Center Redux extension does this.

This is pretty straightforward to do - just need to add a &[pending="true"] nested inside the .tabbrowser-tab section in browser/themes/shared/tabbrowser/tabs.css. But we need a decision from UX on how to style it. I'm also not sure if this can interact with themes or not.

Note that this is behind a pref that is turned off right now - I'm
landing this so UX and a11y folks can more easily take a look at it.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7edbfb66d587 make unloaded tabs favicon semi-transparent behind a pref r=desktop-theme-reviewers,tabbrowser-reviewers,dao

We're trying a few different things here behind prefs so UX can easily
experiment with it. When we make a decision I'll remove all prefs but
the one we go with.

Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dd078da9123a set unloaded tabs' icons to grayscale in the tab bar r=tabbrowser-reviewers,desktop-theme-reviewers,dao

This has been approved by UX, still needs an a11y review but that will
be easier if this change is in so folks can try it out.

Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89b69f74f44f set unloaded tabs' icons to grayscale and semi-transparent behind a pref r=tabbrowser-reviewers,desktop-theme-reviewers,dao

This is what UX has decided makes sense, and will be much less disruptive
than dimming out all favicons on session restore. When we're ready the
default value of "browser.tabs.fadeOutExplicitlyUnloadedTabs" will be
true, and the default value of "browser.tabs.fadeOutUnloadedTabs" will
remain false.

Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2895d98e1d2b make only explicitly unloaded tabs have a grayscale dimmed favicon r=desktop-theme-reviewers,tabbrowser-reviewers,dao,sessionstore-reviewers

Description:
This feature lets users choose to unload tabs via an entry in the tab context menu. This change makes the favicon grayscale and 50% opacity to better indicate that the tab is unloaded.

I've attached a screenshot of what this looks like - in this screenshot the first and third tabs (Mozilla Support and Bugzilla Main Page) are unloaded.

How do we test this?
In a Nightly build, toggle the "browser.tabs.fadeOutExplicitlyUnloadedTabs" pref to true, then right-click on tabs to unload them.

When will this ship?
Tracking bug/issue: bug 1926389
Design documents (e.g. Product Requirements Document, UI spec): This is a proposal for a larger feature, but this bug is part of an MVP for that.
Engineering lead: Greg Stoll
Product manager: (none right now)

Please describe the accessibility guidelines you considered and what steps you've taken to address them: Sorry, I'm not sure how to apply contrast rules to an arbitrary favicon, so I haven't done any of these.

Describe any areas of concern to which you want the accessibility team to give special attention:

  • Is this visual feedback accessible?
  • When the user unloads a tab there is a short CSS transition to make the favicon "fade out". Should this be turned off if "prefers-reduced-motion" is set?
a11y-review: --- → requested
Keywords: leave-open
Attached image unloaded tabs.png โ€”
Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/162e6ad382fb turn on faded out tabs that are explicitly unloaded in nightly r=desktop-theme-reviewers,emilio,accessibility-frontend-reviewers,ayeddi
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Type: task → enhancement
Summary: Consider graying out tabs that are unloaded → Gray out tabs that are explicitly unloaded
Regressions: 1962641
Regressions: 1961031
a11y-review: requested → ---
See Also: → 1961292
QA Whiteboard: [qa-triage-done-c140/b139]
See Also: → 1984922
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: