Closed Bug 2075566 Opened 2 months ago Closed 1 month ago

[HNT] Closing all open tabs directly from the Tab Strip leaves app on Homepage in invalid 0-tab state with toolbar rendered

Categories

(Firefox for Android :: Homepage, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox158 --- disabled
firefox159 --- disabled
firefox160 --- fixed
firefox161 --- verified

People

(Reporter: apetridean, Assigned: npoon)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [group5])

Attachments

(2 files, 1 external file)

Steps to reproduce

  1. Go to Settings -> Customize and enable Show tab bar.
  2. In Normal Browsing, open a few web tabs (e.g., Google, Amazon, Wikipedia, Homepage).
  3. Switch to Private Browsing via homescreen and open a private tab.
  4. Open the Tabs Tray, switch back to the Normal Browsing section, and tap on "+" to turn to the normal browsing homescreeen.
  5. In the Tab Strip, sequentially tap the "x" button on each tab to close them.
  6. Observe the tab counter and the UI layout.

Expected behavior

Either the Homepage tab should remain open/persistent (tab counter stays at 1), OR closing it should properly transition Fenix to the Tabs Tray empty state. The toolbar should never be rendered on top of a Homepage view with 0 open tabs.

Actual behavior

Fenix remains on the Homepage view with a tab count of 0. The address bar / toolbar remains fully visible and active despite 0 tabs being open.

Device information

  • Firefox version: Firefox version: Nightly 158.0a1 - 24.09.2026
  • Android device model: Google Pixel 3 XL (Android 9), Samsung S23 Ultra (Android 14), Xiaomi Pad5 (Android 13)
Whiteboard: [fxdroid] [group5]
Assignee: nobody → npoon
Status: NEW → ASSIGNED

The if statement in TabManagementFragment.onDestroyView keeps a configuration change that happens when the tabs tray is still open to be treated as leaving the tabs tray. This was added as a part of the PBM lock feature.

Due to theming changes, when switching from a private tab to a normal tab, a configuration change also happens but this is also when the tabs tray gets dismissed. As a result, the if statement catches this configuration change and doesn't update the tabs tray visibility

Pushed by npoon@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/beb150247df1 https://hg.mozilla.org/integration/autoland/rev/c33dfff92823 Update tabs tray visibility in the App Store when fragment is getting removed r=android-reviewers,gl

Can QA also confirm no regression with PBM lock, specifically try to see if this reproduces the expected result?

Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.

:npoon, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox159 to wontfix if the fix can wait for the next release.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(npoon)

Verified as fixed on the latest Nightly 161.0a1 from 26.10.2026 with Pixel 7 PRO (Android 17) and Samsung S25 (Android 15).

Flags: qe-verify+

(In reply to Nicholas Poon [:Nick] from comment #3)

Can QA also confirm no regression with PBM lock, specifically try to see if this reproduces the expected result?

Verified this scenario as well; behavior is as intended.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: