Closed Bug 2060827 Opened 3 months ago Closed 3 months ago

The set to default prompt no longer shows by default when the onboarding set to default card is displayed

Categories

(Firefox for Android :: Onboarding, defect, P2)

All
Android
defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: towhite, Assigned: towhite)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file, 1 external file)

Summary

The "Set as default browser" system prompt is no longer displayed when the onboarding "Set as default" card is shown.

Expected

When the user navigates to the onboarding "Set as default" card, the Android system prompt to set Firefox as the default browser is displayed.

Actual

When the user navigates to the onboarding "Set as default" card, the Android system prompt is not displayed unless shouldShowSetAsDefaultPrompt() returns true (typically on the fourth app open).

Root Cause

The gate added in OnboardingFragment as part of https://phabricator.services.mozilla.com/D307748:

if (requireComponents.settings.shouldShowSetAsDefaultPrompt()) {
    defaultBrowserPromptManager.maybePromptToSetAsDefaultBrowser(it)
}

prevents the prompt from being shown during onboarding because shouldShowSetAsDefaultPrompt() is intended for the regular app-open prompt cadence, not the onboarding flow.

The original goal of https://bugzilla.mozilla.org/show_bug.cgi?id=2048705 was to make the default browser prompt configurable via Nimbus. Instead of gating the onboarding prompt with shouldShowSetAsDefaultPrompt(), the onboarding flow should check the Nimbus feature flag directly:

FxNimbus.features.defaultBrowserPrompt.value().enabled

This preserves the existing onboarding behavior while still allowing the prompt to be enabled or disabled remotely through Nimbus.

Attachment #9622038 - Attachment description: WIP: Bug 2060827 - The set to default prompt should be displayed during onboarding when the set to default card is displayed → Bug 2060827 - The set to default prompt should be displayed during onboarding when the set to default card is displayed
Flags: qe-verify+
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/e4836a7040c5 https://hg.mozilla.org/integration/autoland/rev/cf33c2bf173a The set to default prompt should be displayed during onboarding when the set to default card is displayed r=android-reviewers,alastun
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

Verified on the Firefox for Android Nightly 155.0a1 from 8/7 using a Pixel 6 (Android 17), and an Oppo Find N2 flip (Android 15).
When opening the app with a clean profile, the "Set as default" system's prompt is not displayed in front of the "Open all your links with built-in privacy" onboarding card.
Tom, is this the expected behavior?

Flags: needinfo?(towhite)

Thanks, Mira. No, that is not expected. Is Nightly already set as the default browser when onboarding is started? Could you try with a fresh install instead please as opposed to clearing an existing install?

Flags: needinfo?(towhite)
Flags: needinfo?(mlobontiuroman)

I've uninstalled Nightly, and re-installed it.
Firefox 153.0.3 is the default browser, and yet, the "Set as default" prompt is not displayed during onboarding when the "Set to default" card is displayed.
Tested on Nightly 155.0a1 from 8/9 with a Pixel 6 (Android 17).

Flags: needinfo?(mlobontiuroman) → needinfo?(towhite)
Flags: qe-verify+
Blocks: 2062950
Duplicate of bug: 2062950
Flags: needinfo?(towhite)
Resolution: FIXED → DUPLICATE
No longer duplicate of bug: 2062950
Resolution: DUPLICATE → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: