Firefox closes after pairing from a scanned pairing link when the app was not already open
Categories
(Firefox for Android :: Accounts and Sync, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: corentin, Assigned: towhite)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][android-activation-trust])
Attachments
(1 external file)
Steps to reproduce
Mobile
- Install Firefox for Android
- Complete the onboarding
- Close Firefox completely
- Optional steps for debug builds to enable App Links:
- Open system settings
- Click Apps
- Click Default apps
- Click Opening links
- Select Firefox Fenix
- Click Add link
- Enable accounts.firefox.com
Desktop
5. Open Firefox Nightly to access the new pairing QR code
6. Visit https://accounts.firefox.com/pair/authority/scan_qr
Mobile
7. Scan the QR code using your system camera app
8. Complete pairing
Expected: The custom tab closes and Firefox stays open.
Actual: The custom tab closes and the user is brought back to the camera app.
Cause
AuthCustomTabActivity runs in its own task because of android:taskAffinity="" and the activity calls finish() when the authentication succeeds. When Firefox was not already running, there is nothing else in Firefox before AuthCustomTabActivity so Android returns to the previous app.
Updated•6 days ago
|
AuthCustomTabActivity runs in its own task, so when a pairing link launches Firefox from another app, finishing it on success returns the user to that app instead of Firefox.
Updated•4 days ago
|
Description
•