Closed Bug 2032452 Opened 7 months ago Closed 7 months ago

Enable fxbackup on all platforms

Categories

(Firefox :: Profile Backup, task, P1)

task

Tracking

()

VERIFIED FIXED
152 Branch
Tracking Status
relnote-firefox --- 151+
firefox151 --- verified
firefox152 --- verified

People

(Reporter: hsohaney, Assigned: hsohaney)

References

Details

(Whiteboard: [fidedi])

Attachments

(2 external files)

No description provided.
Severity: -- → N/A
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c8592bcaece3 https://hg.mozilla.org/integration/autoland/rev/1d0bc85d226b Revert "Bug 2032452 - enable firefox backup on all platforms. r=cdupuis" for causing several bc failures on macOS.

hey emily, do you know of the top of your head why enabling backup on mac would cause errors in browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_rtamo.js - its an OMC test that I don't fully understand

edit: I noticed that the test fails on windows 11 right now when restore is the aboutwelcome screen - it seems like that is being replicated onto mac with my patch

Flags: needinfo?(hsohaney) → needinfo?(emcminn)

Most likely what is happening is that the backup attribution is taking precedence over RTAMO attribution and inserting the backup screen in front of the RTAMO screen (which is fine in real life, but causes the test to fail because it sees the "wrong" screen being rendered.) The fix is typically to add the screen we don't want to the targeting exemptions (they'll just shortcut the targeting inside that particular test and return it as false so the screen doesn't render)

I'll take a look and make sure that's what's happening.

Flags: needinfo?(emcminn)

Okay, that is indeed what's happening, but the tests in question don't actually have a targeting exemption set up. So I think the cleanest way to fix this is to add a setup step before the first add_task in three places:

add_setup(async () => {
  await SpecialPowers.pushPrefEnv({
    set: [["browser.backup.restore.enabled", false]],
  });
});

in browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_attribution.js,
browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_rtamo.js, &&
browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_screen_targeting.js

Should be fine to turn off the restore screen for these since we're independently testing the backup and restore flows in other places.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Firefox backup and recovery won't be available on macos and linux. User's porting over from windows to another device will not be able to recover their backups.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: - verify backup and recover are available on macos and linux in about:preferences#sync .
  • manual testing will be covered by QA of the feature itself.
  • Risk associated with taking this patch: low
  • Explanation of risk level: - Pref flip
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9574161 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Attachment #9574161 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Release Note Request (optional, but appreciated)
[Why is this notable]: Enables firefox backup and restore on macos and linux.
[Affects Firefox for Android]: No
[Suggested wording]: Starting with Fx151, users can enable local backups of their profiles on macOS and Linux, and restore them across platforms.
[Links (documentation, blog post, etc)]: https://support.mozilla.org/en-US/kb/firefox-backup

relnote-firefox: --- → ?
QA Whiteboard: [qa-ver-needed-c152/b151]
QA Contact: bmaris

Thanks, added to the Fx151 beta release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx151 release notes.

Added to the final Fx151 release notes

Marking as verified since QA has finished testing this on both Linux and MacOS for both Nightly 152 and Beta 151. Note that for MacOS the backup/restore feature is disabled by bug 2039334 in Firefox 151 but not in Firefox 152.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c152/b151] → [qa-ver-done-c152/b151]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: