Closed Bug 2095573 Opened 7 days ago Closed 2 days ago

Pairing flow opens in normal browsing mode when scanning the QR code via the URL bar QR Scanner

Categories

(Firefox for Android :: Accounts and Sync, defect)

Firefox 162
All
Android
defect
Points:
2

Tracking

()

VERIFIED FIXED
163 Branch
Tracking Status
firefox162 --- wontfix
firefox163 --- verified

People

(Reporter: vtamas, Assigned: corentin)

References

(Blocks 1 open bug)

Details

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

Attachments

(2 files, 2 external files)

Preconditions

  • Firefox mobile app installed and open.
  • User not signed into sync.

Steps to reproduce

  1. Navigate to Homepage and focus the URL bar.
  2. Select the QR scanner icon.
  3. Scan the unified QR code shown on desktop.

Expected behavior

Sign-in flow is opened in a Custom Tab.

Actual behavior

Sign-in flow is opened in Normal browsing.

Device information

  • Firefox version: Firefox for Android Nightly 162 (2026-11-19)
  • Android device model: Samsung S24 Ultra (Android 16), Lenovo tab P11 Pro (Android 14), Poco X6 Pro (Android 14)

Additional information

This is a follow-up issue for Bug 2068241.

Assignee: nobody → cbect
Status: NEW → ASSIGNED
Points: --- → 2
Whiteboard: [fxdroid] [android-activation-trust]
Pushed by cbect@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b58734f33af7 https://hg.mozilla.org/integration/autoland/rev/38b0916c7d48 Open pairing links scanned from the URL bar QR code scanner in the auth custom tab r=twhite,titouan
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

The patch landed in nightly and beta is affected.

:corentin, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox162 to wontfix if the fix can wait for the next release.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(cbect)

Once an URL is scanned using the QR code scanner, a confirmation dialog appears. Then the URL is loaded in a regular tab. There was no exception for pairing links, they were also opened in a regular tab.

QrScanFenixFeature.handleToolbarQrScanResults now detects pairing links and opens them in the auth custom tab without showing the confirmation dialog. It also records pairing_link_opened.

Pull request: https://github.com/mozilla-firefox/firefox/pull/465

(cherry picked from commit b58734f33af76f6d5b52d896724d4210ea09644b)

Attachment #9691223 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Users scanning a pairing QR code using the URL bar QR scanner will go through the sign-in flow in a regular browsing tab instead of the dedicated authentication custom tab, resulting in an inconsistent pairing experience depending on which QR scanner is used.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: 1. Navigate to Homepage and focus the URL bar.
  1. Select the QR scanner icon.
  2. Scan the unified QR code shown on desktop.

Expected behavior: Sign-in flow is opened in a Custom Tab.

  • Risk associated with taking this patch: low
  • Explanation of risk level: The patch reuses the existing pairing link detection and authentication custom tab logic to handle pairing links scanned from the URL bar QR scanner. The existing behavior for non-pairing links remains unchanged. The changes are covered by unit tests.
  • String changes made/needed?: No
  • Is Android affected?: yes
Flags: qe-verify+

(In reply to BugBot [:suhaib / :marco] from comment #4)

The patch landed in nightly and beta is affected.

:corentin, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox162 to wontfix if the fix can wait for the next release.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Thanks, I requested an uplift

Flags: needinfo?(cbect)
Attachment #9691223 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Backed out of beta due to test failures
Push
Example log

This issue was verified as fixed on Firefox for Android Nightly 163 (2026-11-26) using a Samsung S24 Ultra (Android 16) and Lenovo tab P11 Pro (Android 14). Confirming that the pairing flow is opened in custom tab when scanning the QR code with the QR scanner from the Url bar.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: