Incorrect tab number appears for a moment on swipe
Categories
(Firefox for Android :: Tabs, defect)
Tracking
()
People
(Reporter: boek, Assigned: jackyzy823)
Details
Attachments
(1 file)
From github: https://github.com/mozilla-mobile/fenix/issues/23860.
Steps to reproduce
- Have at least 2 tabs open (Ideally at least 4).
- Swipe between the tabs.
- Observe the tab counter.
Expected behaviour
The tab counter shows the correct tab number.
Actual behaviour
The number shows 1 tab extra or 1 tab less for a moment.
Device name
Oppo Reno 6
Android version
Android 11
Firefox release type
Firefox Nightly
Firefox version
99.0a1
Device logs
No response
Additional information
┆Issue is synchronized with this Jira Task
Change performed by the Move to Bugzilla add-on.
Comment 1•3 years ago
•
|
||
Still reproducible with the latest Beta 112.0b2 build with Google Pixel 3 XL (Android 9).
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Still reproducible with the latest Beta 113.0b2 build with Xperia 10 (Android 12).
| Assignee | ||
Comment 3•2 years ago
|
||
I'm not very familiar with android view data binding mechanism.
However it looks like tabButton's count in tabPreview of ToolbarGestureHandler is not updated when start swiping.
(I'm not sure where tabButton's initial value from? and why it is not updated? )
But it could be fix by manually updating in preparePreview.
Comment 4•2 years ago
|
||
Comment 5•2 years ago
|
||
I am not deeply familiar with this area of the codebase, but it looks like the TabButton in TabPreview is separate from the TabButton that is displayed in a normal browsing session. The TabPreview that shows the count correctly has that count initialized and controlled by the TabCounterToolbarButton hosted in the BrowserFragment.
All that to say, I think the fix you've provided here is a suitable one that we can move forward with landing.
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Authored by https://github.com/jackyzy823
https://github.com/mozilla-mobile/firefox-android/commit/abac8d79ad435ae404b25258ed54bc951585e1e1
[main] Bug 1812859 - Update tabpreview's tab count when starting swipe
Comment 7•2 years ago
|
||
Verified as fixed on the latest Nightly 115.0a1 build from 05/25/2023.
The tab number remains the correct one on swipe.
Devices used: Oppo Find X5 (Android 13) and a Google Pixel 7 (Android 14)
Marking the ticket as verified for 115.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
The patch landed in nightly and beta is affected.
:jackyzy823, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox114towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
I don't believe this bug is worth uplifting to 114 and have edited the bug accordingly.
Comment 10•2 years ago
|
||
Verified also on Fenix Beta 115.0b1 with Lenovo tablet M10 (Android 10).
Description
•