Closed Bug 1908954 Opened 1 year ago Closed 1 year ago

[toolbar redesign] In custom tab, toolbar/navbar are shown with conflicting light/dark themes, if Firefox theme is different from OS theme

Categories

(Firefox for Android :: Toolbar, defect, P2)

All
Android
defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox128 --- unaffected
firefox129 --- unaffected
firefox130 --- fixed

People

(Reporter: dholbert, Assigned: petru)

References

(Depends on 1 open bug, Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Steps to reproduce

  1. Set Firefox Nightly to have a different light/dark setting from Android (e.g. set Android to "dark" in settings, and Firefox Nightly to "light" in Firefox settings "customize" section)
  2. Tap a link in your email (with Firefox set as your default browser).
  3. Look at the Firefox toolbar in the "app tab" that opens.

Expected behavior

Consistently-themed UI, with no jarring differences. In this case, probably all of the UI should be dark-themed since we're adapting to the theme of the app that we were launched from (which is using the system theme).

Actual behavior

  • The lower "navbar" is light-themed.
  • The rest of the browser/system UI are all dark themed -- Firefox's "main" upper-toolbar (the one with the lock icon, site title and other buttons), the Android gesture-bar at the bottom of my screen, and the system tray at the top of my screen.

Device information

  • Firefox version: 130.0a1 2024-07-18
  • Android device model: Pixel 8
  • Android OS version: 14
Attachment #9413842 - Attachment description: screenshot.png → screenshot of whole screen

Here's a cropped screenshot to show the relevant portion of the screen.

(note: I also filed bug 1908950 on the fact that there are two backarrow buttons shown here)

(I think this is a new issue as of when the navbar was enabled -- at least, the navbar here is the portion that has the wrong theme -- hence, flagging as a regression from bug 1902798 to get it properly associated with that work. Feel free to adjust/add other bug relationships if there's a preferred way to track navbar bugs.)

Keywords: regression
Regressed by: 1902798

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(mavduevskiy)

(Er, I forgot the terminology - it looks like we call these "custom tabs" rather than "app tabs", per https://bugzilla.mozilla.org/describecomponents.cgi?product=Fenix . Updating summary.)

Summary: [toolbar redesign] In app tab, toolbar/navbar are shown with conflicting light/dark themes, if Firefox theme is different from OS theme → [toolbar redesign] In custom tab, toolbar/navbar are shown with conflicting light/dark themes, if Firefox theme is different from OS theme

Note: there are also a few other bits of UI that are similarly-affected -- I filed bug 1908961 on those. This bug here might really just be a special-case of that more general bug. However, I'd contend that the navbar might deserve its own consideration (and possibly its own nearer-term workaround), since it's more prominent/obvious than the other cases (since it's shown sandwiched-between two other bars of the opposite theme, as shown in the comment 1 screenshot).

Depends on: 1908961
Severity: -- → S3
Priority: -- → P2

hey, Daniel! Thanks for reporting the bug, it's so well written! Taking a note how to report bugs for myself ^^

It is possibly fixed in 1904325, the code should have made it into nightly somewhere around this bug was filled. Going through described steps hints that the issue has been resolved.

Could you verify if we can mark it as fixed?

Flags: needinfo?(mavduevskiy) → needinfo?(dholbert)

(In reply to Mike a [:mavduevskiy] from comment #6)

hey, Daniel! Thanks for reporting the bug, it's so well written! Taking a note how to report bugs for myself ^^

Thanks! :D

It is possibly fixed in 1904325, the code should have made it into nightly somewhere around this bug was filled. Going through described steps hints that the issue has been resolved.

Yup, this seems fixed. Following the STR, the navbar is dark now (matching the surrounding UI, and taking its coloring from the native theme rather than the Firefox settings). (The popups described in bug 1908961 are still light, so I'll leave that one open.)

Resolving as fixed-by-bug 1904325, or feel free to adjust resolution as you see fit.

Status: NEW → RESOLVED
Closed: 1 year ago
Depends on: 1904325
Flags: needinfo?(dholbert)
Resolution: --- → FIXED
Assignee: nobody → petru
Target Milestone: --- → 130 Branch
Duplicate of this bug: 1909896
See Also: → 1910628
See Also: → 1912642
See Also: → 1925070
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: