Closed Bug 1944817 Opened 29 days ago Closed 23 days ago

The history tab is not displayed when long-pressing on Android back button

Categories

(Fenix :: History, defect)

All
Android
defect

Tracking

(firefox134 wontfix, firefox135 wontfix, firefox136 verified, firefox137 verified)

VERIFIED FIXED
137 Branch
Tracking Status
firefox134 --- wontfix
firefox135 --- wontfix
firefox136 --- verified
firefox137 --- verified

People

(Reporter: vtamas, Assigned: bob+bmo)

References

Details

(Keywords: regression)

Attachments

(3 files)

Steps to reproduce

  1. Navigate to a website
  2. Open several links in the same tab
  3. Long-press the Android back button.

Expected behavior

The history panel shows up displaying the tab history.

Actual behavior

There is no history panel displayed.

Device information

  • Firefox version: Firefox Nightly 136 (2025-01-29), Firefox RC 135, Firefox 134.0.2
  • Android device model: Samsung Galaxy A32 (Android 13), Poco X6 Pro (Android 14)

Any additional information?

This is a follow-up issue for Bug 1932300.

Keywords: regression

This not working in Android 13 is expected, as the fix from bug 1932300 could only be applied to Android 14+. It not working on Poco with Android 14 is unexpected, however.

As mentioned in bug 1932300 comment 47 a potential solution for Android 13 is to gate the enableOnBackInvokedCallback feature flag to API34+ only, at the potential risk of reintroducing bug 1898059 so we may need to pick one of the two bugs to wontfix.

Nothing immediately comes to mind for fixing the Poco situation: the API used in bug 1932300 theoretically should work across all Android 14 devices so there must be something manufacturer-specific going on here. I'm not sure if it's a good idea to add yet another special case for this.

Use alternative resources to only enable enableOnBackInvokedCallback
on Android 14+ (API34+)

Assignee: nobody → bob+bmo
Status: NEW → ASSIGNED
See Also: → 1945230
Pushed by plingurar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2db9724555ea Use legacy back press handling on Android 13 r=android-reviewers,petru
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Flags: qe-verify+

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

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox136 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(bob+bmo)

We will probably want this uplifted as it's a small change which brings an important quality of life improvement for users
And I can help with that
After QA validates the improvement with no other negative impact.

Flags: needinfo?(bob+bmo)
Flags: needinfo?(petru)

If it's not too much trouble, please also retest bug 1898059 on Android 13 - I expect this to have effectively reintroduced that problem. If it has, do we just accept one or the other must exist?

Attached video BackButtonHistory.mp4

Tested this issue on Firefox Nightly 137 (2025-02-07) and it is fixed only on Samsung A32 (Android 13). Poxo X6 Pro (Android 14) device is still affected and I logged a separate issue Bug 1946778.

(In reply to Bob from comment #7)

If it's not too much trouble, please also retest bug 1898059 on Android 13 - I expect this to have effectively reintroduced that problem. If it has, do we just accept one or the other must exist?

Also retested this issue across several devices and we didn't noticed any regression caused by this fix. However, we did find an issue related to The History and Bookmarks pages where they close when swiping outside the result entries - Bug 1946777

Status: RESOLVED → VERIFIED
Duplicate of this bug: 1946778

Given that the patch here is shown to fix the back button issue on Android 13 also
While the other issues are pre-existent and not directly caused by this
Seems like we should uplift this.

Flags: needinfo?(petru)

Comment on attachment 9462838 [details]
Bug 1944817 - Use legacy back press handling on Android 13 r?#android-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: This ensures long pressing on the back button shows the tab history on Android 13 also - the only Android version with the behaviour still broken.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
    1 - Long press the back button on an Android 13 device and check that the tab history is shown
    2 - While browsing tap the URL to enter search mode. Do a back button press or a back gesture and check that you are brought back to browsing.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small change verified by QA.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9462838 - Flags: approval-mozilla-beta?
No longer duplicate of this bug: 1946778
See Also: → 1946778

Comment on attachment 9462838 [details]
Bug 1944817 - Use legacy back press handling on Android 13 r?#android-reviewers

Approved for 136.0b5

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

Verified as fixed in Beta 136.0b5 with Nothing Phone (2a) 5G (Android 14) and Samsung GalaxyZ Fold 4 (Android 14).

Flags: qe-verify+
See Also: → 1948531
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: