Closed Bug 2019177 Opened 4 months ago Closed 3 months ago

Custom Tabs' system tray & navbar are purple (private-browsing themed), if Firefox Nightly has a private tab in the foreground

Categories

(Firefox for Android :: Tabs, defect)

All
Android
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox148 --- unaffected
firefox149 --- unaffected
firefox150 --- unaffected

People

(Reporter: dholbert, Assigned: azinovyev)

References

(Regression)

Details

(Keywords: regression)

Attachments

(8 files, 2 obsolete files)

88.93 KB, image/png
Details
88.97 KB, image/png
Details
140.20 KB, image/png
Details
140.27 KB, image/png
Details
48 bytes, text/x-phabricator-request
Details | Review
579.01 KB, image/jpeg
Details
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

This is very similar to bug 2012254, but in a slightly different component and with a more-recent regression range.

Steps to reproduce

  1. Ensure that your device is using a "light" theme in System Settings; and in Firefox Nightly's Settings|Customize section, choose to follow the device theme.
  2. Set Firefox Nightly as your default browser.
  3. Open a private tab in Firefox Nightly (e.g. just tap the mask icon on the Firefox homepage)
  4. Launch another app, e.g. Gmail, and tap a link to spawn a custom tab.
  5. Tap the 3-dot=menu in the custom tab.

Expected behavior

The system tray at the top of the screen and the nav-bar at the bottom of the screen should match the color of the Firefox custom-tab toolbar (as they do if you skip step 3 of the STR).

Actual behavior

The system tray at the top of the screen and the nav-bar at the bottom of the screen are purple, i.e. private-browsing-themed.

Device information

  • Firefox version: 149.0a1 Nightly, 150.0a1 Nightly
  • Android device model: Pixel 6a
  • Android OS version: 16

Any additional information?

Regression range:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7df40d9149a3d5135ccdcf8602299a76bf7f0081&tochange=06d48ece4edf6a0c4499cc65f627bbb5ad9820eb

In there, I'm pretty sure this would be from Bug 2006631, which changed the way that we query for the "are we in private browsing" state.

See Also: → 2012254
Attached image screenshot of bug

This bug is particularly noticeable when you open the 3-dot menu -- as of today's Nightly (thanks to bug 2012254), the menu is properly themed (dark gray), but it's extending upwards from a purple bottom-navbar which looks broken.

Here's a screenshot of that.

Attachment #9547779 - Attachment description: screenshot of bug, with 3-dot-menu → screenshot of bug, with 3-dot-menu open (gray menu extending upwards from purple navbar)
Summary: Custom Tabs' header/footer-bars are purple (private-browsing themed), if Firefox Nightly has a private tab in the foreground → Custom Tabs' system tray & navbar are purple (private-browsing themed), if Firefox Nightly has a private tab in the foreground

Andrey, maybe you could take a look at this regression from bug 2006631?

Flags: needinfo?(azinovyev)
Assignee: nobody → azinovyev
Status: NEW → ASSIGNED
Flags: needinfo?(azinovyev)
Severity: -- → S2
Pushed by azinovyev@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4292a100737c https://hg.mozilla.org/integration/autoland/rev/84c01f28f193 Use system theme for custom tab UI instead of global browsing mode. r=android-reviewers,skhan
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

Thanks for the fix!

I noticed one other bit of UI that's got the same issue -- the "Copy" context-menu that appears if you long-press the custom tab's top-toolbar. That's got a purple background right now, if Firefox Nightly happens to have a private tab as the foreground tab.

Not sure if that'll be fixed by the patch that landed today -- I'll retest that in tomorrow's Nightly and file a bug if that part is still broken.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(azinovyev)

firefox-beta Uplift Approval Request

  • User impact if declined: Users see wrong UI.
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Steps to reproduce
  1. Ensure that your device is using a "light" theme in System Settings; and in Firefox Nightly's Settings|Customize section, choose to follow the device theme.
  2. Set Firefox Nightly as your default browser.
  3. Open a private tab in Firefox Nightly (e.g. just tap the mask icon on the Firefox homepage)
  4. Launch another app, e.g. Gmail, and tap a link to spawn a custom tab.
  5. Tap the 3-dot=menu in the custom tab.

Expected behavior

The system tray at the top of the screen and the nav-bar at the bottom of the screen should match the color of the Firefox custom-tab toolbar (as they do if you skip step 3 of the STR).

Actual behavior

The system tray at the top of the screen and the nav-bar at the bottom of the screen are purple, i.e. private-browsing-themed.

  • Risk associated with taking this patch: low
  • Explanation of risk level: UI change
  • String changes made/needed: No
  • Is Android affected?: yes
Attachment #9548617 - Flags: approval-mozilla-beta?
Flags: qe-verify+

(The related issue that I mentioned in comment 9 persists in latest Nightly, so I'll file a new bug on that.)

Attachment #9548617 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: needinfo?(azinovyev)
Attached image Custom toolbar.jpg

Verified as fixed on the latest Beta 149.0b3 and on the latest Nightly 150.0a1 builds.

The system tray at the top of the screen and the nav-bar at the bottom of the screen do match the color of the Firefox custom-tab toolbar.

Devices used:

  • Motorola Nexus 6 (Android 8);
  • Google Pixel 9 Pro XL (Android 16);
  • Samsung Galaxy S25 Ultra (Android 16).

Marking the ticket as verified on 149 and 150.

Pushed by jonalmeida942@gmail.com: https://github.com/mozilla-firefox/firefox/commit/1d6037451f7d https://hg.mozilla.org/integration/autoland/rev/4a24c2464a52 Revert "Bug 2019177 - Use system theme for custom tab UI instead of global browsing mode. r=azinovyev,android-reviewers"

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)

Seems like this bug should be reopened if we're reverting the change. Is this being backed out from Beta also, Jon?

Status: RESOLVED → REOPENED
Flags: needinfo?(jonalmeida942)
Resolution: FIXED → ---
Target Milestone: 150 Branch → ---

(In reply to Ryan VanderMeulen [:RyanVM] from comment #19)

Seems like this bug should be reopened if we're reverting the change. Is this being backed out from Beta also, Jon?

Yeah, the back-out will be uplifted to beta on Monday if the weekend backout is stable. We can then close the regressions with bug 2009823 re-opened.

Keeping NI as a to-do reminder.

Attachment #9547905 - Attachment is obsolete: true

This reverts commit 4292a100737cd482804813491bc2626870f39c03.

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

Attachment #9551514 - Flags: approval-mozilla-beta?
Attachment #9551514 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This reverts commit 4292a100737cd482804813491bc2626870f39c03.

Attachment #9551709 - Flags: approval-mozilla-beta?
Attachment #9551709 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

(In reply to Jonathan Almeida [:jonalmeida] from comment #21)

Keeping NI as a to-do reminder.

It is done.

Flags: needinfo?(jonalmeida942)
Attachment #9551514 - Attachment is obsolete: true

Closing since we have reverted the offending patches.

Status: REOPENED → RESOLVED
Closed: 4 months ago3 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: