Closed Bug 2033318 Opened 7 months ago Closed 7 months ago

Closed tab sometimes remains visible in tab tray

Categories

(Firefox for Android :: Tabs, defect)

All
Android
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dholbert, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached video screencast —

Steps to reproduce

  1. Close the currently active tab (the one with a border) in the tabs tray, by clicking the "x" on its corner.
  2. Scroll around, see if you can still see it.

Expected behavior

Tab should disappear.

Actual behavior

Sometimes the tab stays there, painting behind other tabs.

Device information

  • Firefox version: 151.0a1 2026-04-18
  • Android device model: Pixel 10 Pro XL
  • Android OS version: 16

Any additional information?

This was happening reliably to me for a minute or so today, in my regular and private browsing tab tray. I caught it on a screencast (see attached, first half). And then as I was recording, it stopped reproducing (second half of screencast). So there might be some fiddly aspect to making this happen.
EDIT: I've got it reproducing again; I think the tab that you close just needs to be the active one. Edited STR to reflect this.

Today was the first time I've ever seen this behavior, so I'm tentatively flagging this as a regression.

Ah ok, I can reproduce reliably again - I think the key thing is to close the currently active tab. That's the one that seems to cause this problem.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(giorga)
See Also: → 2033338
See Also: → 2033371
Duplicate of this bug: 2033299

I’ve been testing this on a Xiaomi 14 (Android 16) and it seems like the UI refresh is consistently lagging exactly one step behind. Closing the active tab triggers the glitch every time, but background tabs actually close fine unless there's another tab sitting to its right in the same row.

Interestingly, the overview only holds one ghost at a time. If I have a ghost and then close a second tab, the first one finally clears out. That second tab might then become a new ghost itself depending on the action, but it's not a guarantee. Also, just minimizing the app and coming back to it from the background forces a refresh and fixes the layout instantly.

Attaching a video that shows the ghost swapping and how the row position affects it.

Duplicate of this bug: 2033371
See Also: 2033371 →
Duplicate of this bug: 2033232

I'm able to reproduce this state consistently by closing the tab in the row immediately above the active tab. With the fix for Bug 2033339 I can no longer reproduce it. This will be landing today.

Flags: needinfo?(giorga)
Duplicate of this bug: 2033767

This appears to be fixed in the latest Nightly

Duplicate of this bug: 2033500

Currently reproducing the bug on:
152.0a1 (Build #2016156423), eab44672da9da46690ead6cc9fa93187537fdd21

(In reply to Iorga Gabriel from comment #12)

It was fixed with this https://phabricator.services.mozilla.com/D295278

Should this be resolved, or do you plan on tracking any further patches here?

Flags: needinfo?(giorga)

I'll mark this for QA to make sure, but this should be resolved by the patch from Bug 2033339

Severity: -- → S3
Flags: needinfo?(giorga) → qe-verify+

Verified as fixed on the latest Firefox for Android Nightly 152.0a1 builds from 4/21, and 4/22.
Tested with Pixel 6 (Android 17), Samsung Galaxy S24 (Android 16), and Samsung Galaxy z Fold4 (Android 16).

Flags: qe-verify+
No longer duplicate of this bug: 2033500

The bug is marked as tracked for firefox151 (beta). However, the bug still isn't assigned and has low severity.

:007, could you please find an assignee and increase the severity for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(nbond)

Mira, could you also confirm it's ok on Fx151 beta? We could resolve this if it's ok there also

Flags: needinfo?(mlobontiuroman)

Verified as fixed also on Firefox for Android 151.0b1 build 2 with a Pixel tablet (Android 16), and a Samsung Galaxy S24 (Android 16).

Flags: needinfo?(mlobontiuroman)
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME
Flags: needinfo?(nbond)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: