Closed Bug 1702376 Opened 4 years ago Closed 4 years ago

Remove wipeAll support

Categories

(Firefox :: Sync, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: markh, Assigned: bdk)

References

Details

Attachments

(1 file, 1 obsolete file)

We support a 'wipeAll' command, designed to wipe all engines from a client. This is not used in practice and I think this is misguided - a possible use-case might be for a lost device or similar, but in that scenario:

  • A user probably would also expect non-sync data to be wiped
  • A user would probably prefer to use features built into the OS so things other than Firefox are wiped.

We've carried the (unused) implementation into the rust components, so it often causes confusion (eg, "when is this called?" - the answer "never" is not obvious), and Lougenia just had to deal with it again for autofill.

So I propose we kill it. We can keep support for the plain "wipe" (which just targets a single collection) as that has at least 1 use-case (bookmarks), but the wipeAll footgun should go.

This is, roughly, kill every reference in https://searchfox.org/mozilla-central/search?q=wipeAll without breaking anything else and ensuring all tests continue to pass.

  • Use wipeEngine("tabs") instead of wipeAll() as a test command in test_clients_engine.js
  • Madet the engines param required in wipeRemote()
Assignee: nobody → bdeankawamura
Status: NEW → ASSIGNED

I think this code is ready for review, what's the next step?

Ignore this one, I entered the wrong bug number.

Comment on attachment 9218401 [details]
WIP: Bug 1702376: Updating sync engine logging

Revision D113385 was moved to bug 1552382. Setting attachment 9218401 [details] to obsolete.

Attachment #9218401 - Attachment is obsolete: true
Attachment #9217835 - Attachment description: WIP: Bug 1702376 - Removed the wipeAll command (fixes #1702376) → Bug 1702376 - Removed the wipeAll command. r=markh
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: