Closed Bug 2082518 Opened 1 month ago Closed 2 days ago

Back navigation returns to Trust Panel

Categories

(Firefox for Android :: Settings, task)

All
Android
task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: lmccracken, Assigned: lmccracken)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][android-activation-trust])

Attachments

(1 external file)

Summary
Back from the certificate details sub-page returns to the Trust Panel

Description
Once a user has opened the certificate details sub-page, they need to get back to the Trust Panel in the way they expect on Android. This ticket covers every route back and makes sure the Trust Panel is in the same state as when they left it.

There are three ways back that should all behave the same: the back or up button in the sub-page’s header, the system Back button, and the system Back gesture (including predictive back on Android versions that support it). Each should return to the Trust Panel, not close the panel entirely and not leave the browser.

The Trust Panel should look as it did before the user tapped in: same content, same scroll position, and no flicker or reload that visibly re-fetches data. Sub-page state does not need to be preserved after the user goes back.

In scope

A back or up button in the sub-page header, per Figma, with correct icon mirroring in RTL
System Back button and gesture handling that pops the sub-page and returns to the Trust Panel
Predictive back support, consistent with how the rest of the app handles it
Restoring the Trust Panel’s state (scroll position, expanded or collapsed sections, anything else it holds)
Behaviour when the sub-page is open and the app is backgrounded, killed or rotated, then restored
Behaviour when the tab navigates, reloads or closes while the sub-page is open
Accessibility: back button has a content description, and focus returns sensibly to the “Secure connection” row in TalkBack and keyboard navigation
Unit or UI tests covering each back route

Out of scope

Making the row tappable and the forward navigation
Sub-page layout and content
Data plumbing
Edge-state behaviour
Focus (the separate Android app)

Acceptance criteria

The header back button returns to the Trust Panel.
System Back and the Back gesture return to the Trust Panel, not to the previous page or out of the app.
Predictive back shows a sensible preview animation and completes correctly, or is consistent with the rest of the app if not supported.
After going back, the Trust Panel shows the same content and scroll position as before.
A second Back from the Trust Panel behaves as it does today (closes the panel).
The back icon mirrors correctly in RTL and has a TalkBack description.
After going back, TalkBack and keyboard focus land on the “Secure connection” row.
Rotating the device or toggling dark mode with the sub-page open keeps the user on the sub-page, and Back still works afterward.
If the tab closes or navigates while the sub-page is open, the behaviour is defined and tested, and the user is never left on a blank or stale page.
Tests cover header back, system Back and gesture Back.

Whiteboard: [fxdroid][android-activation-trust]

System back and the back gesture return from the certificate details sub-page to
the Trust Panel, which keeps its scroll position and focuses the "Secure connection"
link. The current page is kept across configuration changes, and the Trust Panel is
dismissed if its tab is closed. There is no back button in the sub-page header, as
the design does not include one.

Assignee: nobody → lmccracken
Status: NEW → ASSIGNED
Pushed by lmccracken@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/75428ef0648a https://hg.mozilla.org/integration/autoland/rev/dac1fad4ba44 Return to the Trust Panel from the certificate details sub-page. r=android-reviewers,twhite
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: