Closed Bug 1911100 Opened 10 months ago Closed 8 months ago

Display "Set as default Browser" native prompt in home fragment

Categories

(Firefox for Android :: Experimentation and Telemetry, task, P1)

All
Android
task

Tracking

()

VERIFIED FIXED
132 Branch
Tracking Status
firefox131 --- fixed
firefox132 --- fixed

People

(Reporter: vdreghici, Assigned: Gela)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group2])

Attachments

(2 files)

According to current criteria, the prompt will be displayed when the user lands on the home fragment.

Summary: Trigger "Set as default Browser" native prompt in home fragment → Display "Set as default Browser" native prompt in home fragment
Assignee: nobody → gmalekpour
Attachment #9420899 - Attachment description: WIP: Bug 1911100 - Display Set as default Browser native prompt in home fragment → Bug 1911100 - Display Set as default Browser native prompt in home fragment
Attachment #9420899 - Attachment description: Bug 1911100 - Display Set as default Browser native prompt in home fragment → WIP: Bug 1911100 - Display Set as default Browser native prompt in home fragment
Attachment #9420899 - Attachment description: WIP: Bug 1911100 - Display Set as default Browser native prompt in home fragment → Bug 1911100 - Display Set as default Browser native prompt in home fragment
Pushed by gmalekpour@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f45161fbd89f Display Set as default Browser native prompt in home fragment r=android-reviewers,vdreghici,rebecatudor273,twhite

Backed out for causing HomeFragmentTest related fenix failure

Backout link

Push with failures

Failure log

This is also failing: https://treeherder.mozilla.org/logviewer?job_id=472773241&repo=autoland&lineNumber=3225

Flags: needinfo?(gmalekpour)

This also breaks org.mozilla.fenix.ui.HomeScreenTest#addPrivateBrowsingShortcutFromHomeScreenCFRTest as the default browser prompt pop-ups on the private browsing screen blocking interactions of the test. Not sure if this is the new behaviour but the prompt should be disabled for UI tests (cc @andi).

Yes, we don't display the onboarding for this UI test and it looks like when we switch back the second time to the private browsing home screen the "Set as default browsing" dialog is being displayed.

Not sure if this should happen if the onboarding is being skipped by default ?

Managed to fix the failing UI test yesterday with D221038

Pushed by gmalekpour@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc46c4e2586a Display Set as default Browser native prompt in home fragment r=android-reviewers,vdreghici,rebecatudor273,twhite
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

removing the needinfo label

Flags: needinfo?(gmalekpour)
Attachment #9427125 - Flags: approval-mozilla-release?

release Uplift Approval Request

  • User impact if declined: The native default browser feature will not be accessible in a 131 dot release
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: On Android 10 or newer after the 4th cold start we should see a default prompt asking users if they want to set Firefox as their default browser. On devices with older than Android 10, the behavior remains unchanged and they get a CFR instead.
  • Risk associated with taking this patch: Low
  • Explanation of risk level: Does not impact existing functionality drastically. Users on Android 10+ get a native prompt to set Firefox as their default browser.
  • String changes made/needed: No
  • Is Android affected?: yes
Flags: qe-verify+

As Ryan suggested, I've added Bug 1916749 to the depends on field as these changes will break the UI tests.

Requested an uplift D223604 to land them at the same time.

Depends on: 1916749

Hello Gela and Aaron,

I tried this scenario on Android 10+ devices, in order to trigger the default prompt:

  1. Installed the Fenix Nightly 132.0a1 from Play Store (9/25 build).
  2. The "Set Firefox Nightly as your default browser app?" prompt was displayed over the onboarding.
  3. Tapped outside it, in order to dismiss it.
  4. Dismissed the onboarding, opened a tab.
  5. Force closed Fenix.
  6. Open a new tab, and force close Fenix 5 five more times.
  7. From the device's settings, moved the date & time with 3 weeks ahead.
  8. Reopened Fenix.
  9. No prompt displayed.
  10. Forced from the Secret Settings, by enabling "Enable Native Default Browser Promp for Existing Users" --> the prompt is displayed.

Tested this on a Google Pixel 6 (Android 15), Oppo Find N2 Flip (Android 14), and Xiaomi Mi8 Lite (Android 10).

On the Android <10, on Samsung Galaxy Note 8 (Android 9), and on a HTC 10 (Android 8), it works as expected:

  1. Installed the Fenix Nightly 132.0a1 from Play Store (9/25 build).
  2. Tapped on "Not now" on the "Set as your default browser" onboarding card.
  3. Dismissed the other onboarding cards, opened a tab.
  4. Force closed Fenix.
  5. Open a new tab, and force close three more times.

The "Set as default browser" banner is displayed on the homescreen.

Please let me know if I'm doing something wrong on trying to retrigger the "Set as default" propmt on Android 10+ devices.

Flags: needinfo?(gmalekpour)
Flags: needinfo?(aaron.train)
Flags: qe-verify+
Flags: needinfo?(aaron.train)

Hi miralobontiu; I'll pass it over to Gela on this as I'm not familiar with the proposed changes.

Please let me know if I'm doing something wrong on trying to retrigger the "Set as default" propmt on Android 10+ devices.

Thanks for testing this, this feature was disabled by default and only becomes available after toggling it on in the secret settings menu. Rebeca just put up a patch to enable this by default which should go in as soon as mach try job succeeds: https://phabricator.services.mozilla.com/D224767

Flags: needinfo?(gmalekpour)
Attachment #9427125 - Flags: approval-mozilla-release? → approval-mozilla-release+

Set as browser banner is correctly displayed on the latest Beta (132.0b4) and latest RC (131.0.1) builds on a Android <10 device (Samsung Galaxy Tab S3 with Android 9).

Set as browser prompt is correctly displayed on the latest RC (131.0.1) and on the latest Beta (132.0b4) builds on an Android 14 device (Samsung Galaxy S23 Ultra) through the above mentioned setting.

Marking the ticket as verified on 131 and 132.

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

Attachment

General

Creator:
Created:
Updated:
Size: