Closed Bug 2080169 Opened 1 month ago Closed 1 month ago

Sync credit cards through the Rust store's bridged engine on Desktop

Categories

(Toolkit :: Form Autofill, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: dimi, Assigned: dimi)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file, 1 obsolete file)

The Desktop half of bug 2074008, which exposes Store.credit_cards_bridged_engine() from application-services.

Once extensions.formautofill.creditCards.storage.rust.active is set, Sync still uses CreditCardsEngine against the JSON store, so incoming cards land where nobody reads them and local ones are never uploaded. Add a BridgedCreditCardsEngine and register it as the alternative on that pref, as bug 2062542 did for addresses.

Unlike addresses, a sync with the Primary Password locked has to be skipped rather than prompt, and the meta/global engine version must stay 1 to match other clients.

Vendor application-services pull request #7648 (bug 2074008, head 1754a7af21),
which exposes Store.credit_cards_bridged_engine(). CreditCardsBridgedEngine is
declared AsyncWrapped beside AddressesBridgedEngine.

This must not land; replace it with a plain vendor bump once #7648 merges.

The credit card counterpart of bug 2062542. BridgedCreditCardsEngine is
registered as the alternative to CreditCardsEngine on
creditCards.storage.rust.active, so Sync reads and writes the store the browser
is serving from.

Unlike addresses, a sync with the primary password locked is skipped and
records MASTER_PASSWORD_LOCKED rather than prompting, as RustPasswordEngine
does. The meta/global engine version stays CreditCardsEngine's (1), not
CREDIT_CARD_SCHEMA_VERSION, so other clients keep syncing.

Depends on D332396

Assignee: nobody → dlee
Status: NEW → ASSIGNED
Attachment #9656850 - Attachment description: WIP: Bug 2080169 - P2. Sync credit cards through the Rust store's bridged engine on Desktop r?joschmidt → Bug 2080169 - P2. Sync credit cards through the Rust store's bridged engine on Desktop r?joschmidt
Attachment #9656850 - Attachment description: Bug 2080169 - P2. Sync credit cards through the Rust store's bridged engine on Desktop r?joschmidt → Bug 2080169 - Sync credit cards through the Rust store's bridged engine on Desktop r?joschmidt
Pushed by dlee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1b693cb9a5e1 https://hg.mozilla.org/integration/autoland/rev/e517a6c61387 Sync credit cards through the Rust store's bridged engine on Desktop r=credential-management-reviewers,joschmidt
Attachment #9656849 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: