Incorrect back navigation behavior in PWA
Categories
(Firefox for Android :: Browser Engine, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | unaffected |
firefox140 | + | verified |
firefox141 | + | verified |
People
(Reporter: mstange, Assigned: royang)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [fxdroid][group3])
Attachments
(3 files)
This is a recent regression.
Steps to reproduce:
- In Firefox for Android, go to https://mastodon.social/ .
- Install it as a PWA by selecting "Add app to Home screen" in the Firefox menu.
- Go to the home screen.
- Open the PWA by tapping on the new icon.
- Press the Android back button or execute the Android back swipe gesture.
Expected results:
The PWA should disappear and the home screen should appear.
Actual results:
Firefox remains open and navigates "back" to an empty dark gray screen. There is no way to go forward. If you now go to the home screen manually and tap the PWA again, you go back to the dark gray screen.
Reporter | ||
Updated•1 month ago
|
Comment 1•24 days ago
|
||
This bug has been marked as a regression. Setting status flag for Nightly to affected
.
Reporter | ||
Comment 2•22 days ago
|
||
[Tracking Requested - why for this release]: Regression which temporarily breaks the UI
Regression range: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0fd4c5364227&tochange=3cde666e7966
(I used mozregression until I got this mozilla-central range from Nightlies, and then manually installed Fenix builds from autoland. This took a lot more time than it needed to; fixing mozregression to properly support Fenix would make this process a lot less painful. See bug 1857026 + bug 1969327 + bug 1969329.)
Likely suspect: bug 1961852
Comment 3•22 days ago
|
||
:royang, since you are the author of the regressor, bug 1961852, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 4•22 days ago
|
||
Thanks for chasing this down. I will investigate.
Assignee | ||
Updated•22 days ago
|
Assignee | ||
Comment 5•22 days ago
|
||
Confirmed reproducible. And by checking out the build right before the regressor, the issue is fixed.
Assignee | ||
Comment 6•22 days ago
|
||
Issue caused by removal of onBackPressed override by mistake. I will restore as fix.
Assignee | ||
Comment 7•22 days ago
|
||
Assignee | ||
Comment 8•22 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D251769
Updated•22 days ago
|
Comment 9•22 days ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: In PWA if the user tries to back out of the app they will get stuck in a blank screen
- Code covered by automated testing: no
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: Open a PWA shortcut from Android Home and try to back out through either gesture or Android OS back button.
- Risk associated with taking this patch: Low risk
- Explanation of risk level: This is restoring a portion of the code that was accidently removed.
- String changes made/needed: None
- Is Android affected?: yes
Assignee | ||
Updated•22 days ago
|
Updated•22 days ago
|
Comment 10•22 days ago
|
||
bugherder |
Updated•22 days ago
|
Reporter | ||
Comment 11•21 days ago
|
||
(In reply to Roger Yang [:royang] from comment #4)
Thanks for chasing this down.
Thanks for the quick fix!
Updated•20 days ago
|
Updated•20 days ago
|
Comment 12•20 days ago
|
||
uplift |
Comment 13•17 days ago
•
|
||
This issue is verified as fixed on Firefox for android Nightly 141 (2025-06-02), Firefox 140 beta 4 and using Google Pixel 8 with Android 15. Confirming that the PWA shortcut is dismissed when tapping on system back button.
Updated•17 days ago
|
Updated•17 days ago
|
Description
•