phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 660 forks source link

Long pressing back button doesn't show browser history #2496

Open danielzhang130 opened 1 year ago

danielzhang130 commented 1 year ago

Current Behavior:

While navigating in a chromium based browser, long pressing back button brings you back one page.

Expected behavior

When long pressing back button, the browser should show page history. See this page for feature description. https://www.xda-developers.com/google-chrome-android-back-button-history/

To Reproduce

  1. Download Chrome/Brave/etc
  2. Navigate a few pages on the browser
  3. Hold system back button
  4. Browser does not show page history

Smartphone (please complete the following information):

Additional context

This problem exists on all my phones, running trebledroid 13. This problem is also present in vanilla aosp-android13-gsi branch build from ci.android.com

This only seems to be an issue with chromium based browsers, which presumably rely on platform implementation of long press back button. This problem does not exist on firefox for example, which apparently implements long press in the app.

danielzhang130 commented 1 year ago

Update, this is working on vanilla aosp-android12-gsi from ci.android.com and phh treble 12.1 v416