Support browser back (in toolbar and menu) for stories opened from the home screen
Categories
(Firefox for Android :: Toolbar, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | verified |
People
(Reporter: petru, Assigned: petru)
References
Details
(Whiteboard: [fxdroid][group3])
Attachments
(2 external files)
Use SessionState.Source as the marker for when a tab has been started for a home screen story.
Based on this marker we should know to:
- enable the back buttons in the toolbar and the menu
- when these back buttons^^ are pressed: get the user back to the specific story on the homescreen.
Updated•7 months ago
|
| Assignee | ||
Comment 1•7 months ago
•
|
||
While working on this I saw an ugly edgecase with HNT enabled:
In a tab already opened for a specific usecase - with parentId, source etc users can type about:home then go to stories and load a new story in an existing tab, on top of 10 other tab history entries. So we should not update the tab parentId or source or any such properties.
And even if the user typed about:home and then loaded a new story we cannot let them go back to home from a story - we want to get them back to the stories page of the homescreen.
So I’m now leaning towards adding our own internal UTM parameter to the stories URLs and use this to know that pressing back while on an URL with that UTM parameter should bring the user back to the stories’ page.
Checked with Jonathan about this and he also supports relying on an UTM parameter.
John Hall recommends having this functionality only until the application is restarted.
| Assignee | ||
Comment 2•7 months ago
|
||
| Assignee | ||
Comment 3•7 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Comment 5•7 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/55497e4d70be
https://hg.mozilla.org/mozilla-central/rev/aa76abbfe951
| Assignee | ||
Updated•7 months ago
|
Comment 6•6 months ago
|
||
Verified as implemented on the latest Firefox for Android Nightly 152.0a1 from 4/24 with a Samsung Galaxy S24 (Android 16), and a Pixel tablet (Android 16).
After a story has been opened in a new tab, tapping back, or performing the back gesture, returns the user to the "News" page, on the same scrolling position the user has left the "News" page.
Description
•