Open Bug 1884394 Opened 1 year ago Updated 20 days ago

Frequent inability to use 'back'

Categories

(GeckoView :: General, defect)

All
Android
defect

Tracking

(Performance Impact:medium, firefox145 affected)

REOPENED
145 Branch
Performance Impact medium
Tracking Status
firefox145 --- affected

People

(Reporter: jesup, Assigned: royang)

References

(Blocks 1 open bug)

Details

(Keywords: perf:pageload)

Attachments

(1 file, 1 obsolete file)

Steps to reproduce

  1. Browse to a site from an intent (typically from the google news feed, with firefox nightly set as the default browser, and the "open in browser" setting in the google app set (which isn't the default), so that it opens in the browser directly.
  2. Normally 'back' takes you back to google news (sometimes sites interject a navigation into history so 'back' initially takes you to lists of their other articles/ads, and back from there goes to the google news app.
  3. Sometimes (typically at least once or more a day), back does nothing. The page is responsive. holding back pops up the history list, which always has the same site listed twice. selecting either one doesn't fix it. You have to kill the tab.
  4. Selecting the same article again from google news does not have the same issue; back works normally. For this reason I don't think it's the site trying to block back by immediately re-navigating.

Expected behavior

Back works

Actual behavior

Stuck on page

Device information

  • Firefox version: Nightly (for the last couple of years at least)
  • Android device model: Samsung S21 and S24
  • Android OS version: 14, One UI 6.1 (S24)

Any additional information?

The severity field is not set for this bug.
:tthibaud, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tthibaud)
Severity: -- → S3
Flags: needinfo?(tthibaud)
Performance Impact: --- → ?

I continue to hit this many times a day...

Note that 'reload' (which works) clears the error, and then Back will go to the right place (which is in the cases I've hit to exit the browser)

This doesn't seem like an actual performance issue, but it does impact perceived performance.

The Performance Impact Calculator has determined this bug's performance impact to be medium. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: Android
Page load impact: Some

Performance Impact: ? → medium
Keywords: perf:pageload
See Also: → 1898059
Component: History → Toolbar

Remove Bug 1898059 link, they are similar but unrelated. This issue is a problem with Android OS Back button, not back gesture. Thanks

See Also: 1898059

(In reply to Randell Jesup [:jesup] (needinfo me) from comment #0)

  1. Normally 'back' takes you back to google news

Just to make sure we're clear on the steps here, this is swiping back or going back using the back button?

Flags: needinfo?(rjesup)
Blocks: 1941020

back button, always -- either OS back button, or the UI back button

Flags: needinfo?(rjesup)

Investigation shows that the prompt feature here is a possible cause of this issue. When there is an active prompt, even after the prompt is dismissed, it is not cleared from the active prompt.

I'll put up a fix for it and see if this solves the issue.

Assignee: nobody → royang
Status: NEW → ASSIGNED
Pushed by royang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cd43a83f7f00 https://hg.mozilla.org/integration/autoland/rev/eb742dd6060a When dismissed active prompt clear active prompt request. r=android-reviewers,petru
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

Have a new profile that I'm investigating for this issue.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #9515395 - Attachment is obsolete: true

Looking at the profile, I've narrow it down to SessionFeature.kt. In some cases, the onBackPressed call clears selection (here) when there is no text selected on the page. Also some cases it will continue to clear selection but the next call to engineView.canClearSelection() will still be true.

Moving to GeckoView, since the expected behavior of engineView.clearSelection() should result in the next call of engineView.canClearSelection() to return false.

Also engineView.canClearSelection() should not be true if there is no text selected.

Component: Toolbar → General
Product: Firefox for Android → GeckoView

The easy way to reproduce I found is to use this site:
https://www.leravi.org/michael-schumacher-an-emotional-message-from-the-clinic-it-was-beautiful-we-will-remember-him-forever-14943/

Long press a few times without selecting any text. (If accidentally selecting text just press back). Then after 5-10 times, press back to close the page but it will take a few back to leave.

The issue seems site related and also needs user to tap on the page a few times.

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

Attachment

General

Created:
Updated:
Size: