Closed Bug 2080179 Opened 1 month ago Closed 1 month ago

Store the credit card security code in the Rust store on Desktop

Categories

(Toolkit :: Form Autofill, task, P2)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: dimi, Assigned: dimi)

References

(Blocks 1 open bug)

Details

Attachments

(3 external files)

The Desktop half of bug 2076154, which adds an optional encrypted CVV to the Rust autofill store.

With extensions.formautofill.creditCards.storage.rust.active set, the Rust credit card adapter drops cc-csc, so a captured security code is lost and the CVV features do not work. Map cc-csc to the store's CVV field, keep it out of card matching as the JSON store does, and carry it through updates and the migration in both directions.

Vendor application-services pull request #7631 (bug 2076154, head e5a32d66e1) on
top of #7648, as local revision acaa81e3d. It adds an optional CVV to the Rust
store, encrypted like the number: UpdatableCreditCardFields.cc_cvv in,
CreditCard.cc_cvv out, a v6 schema upgrade adding the column, and a cc-cvv field
in sync payloads.

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

Map cc-csc to the store's encrypted ccCvv. It stays out of
VALID_CREDIT_CARD_FIELDS, where the JSON store keeps it as an unknown field, so
matching ignores it in both stores. update() keeps an omitted code even without
preserveOldProperties, so a caller that does not handle it cannot drop it; the
empty string clears it. The migration carries the code both ways and compares
an empty one as equal to none.

The CVV browser tests no longer skip under the Rust store.

Depends on D332402

Attachment #9656863 - Attachment description: WIP: Bug 2080179 - P2. Store the credit card security code in the Rust store on Desktop r?joschmidt → Bug 2080179 - P2. Store the credit card security code in the Rust store on Desktop r=neil

isAutofillCreditCardCVVSupported now also requires the Rust credit card store
to be active: the JSON store would keep the code in the clear. While it serves,
no CVV option is offered and no new code is stored, and a code it already holds
stays hidden. A profile with a primary password is never migrated, so it does
not get the feature.

The CVV browser tests switch to the Rust store through the new
switchCreditCardStore helper, and new tasks check the JSON store offers none of
it.

Depends on D332403

Attachment #9656862 - Attachment description: WIP: Bug 2080179 - P1. Vendor credit card CVV storage from application-services DO NOT MERGE → Bug 2080179 - P1. Vendor application-services bf6e952d for credit card CVV storage r?joschmidt
Attachment #9656863 - Attachment description: Bug 2080179 - P2. Store the credit card security code in the Rust store on Desktop r=neil → Bug 2080179 - P2. Store the credit card security code in the Rust store on Desktop r=joschmidt
Pushed by dlee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2c4c70cd841c https://hg.mozilla.org/integration/autoland/rev/496ed32b429d P1. Vendor application-services bf6e952d for credit card CVV storage r=joschmidt https://github.com/mozilla-firefox/firefox/commit/91939a039c4e https://hg.mozilla.org/integration/autoland/rev/17bbdb9133a3 P2. Store the credit card security code in the Rust store on Desktop r=credential-management-reviewers,NeilDeakin,joschmidt https://github.com/mozilla-firefox/firefox/commit/5d41bc07dec2 https://hg.mozilla.org/integration/autoland/rev/db4ce13b2efa P3. Only support credit card security codes while the Rust store is serving r=joschmidt,credential-management-reviewers
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/91e559a5ac31 https://hg.mozilla.org/integration/autoland/rev/235236f01c99 Revert "Bug 2080179 - P3. Only support credit card security codes while the Rust store is serving r=joschmidt,credential-management-reviewers" for causing documentation failures.
Flags: needinfo?(dlee)
See Also: → 2082313
Attachment #9656862 - Attachment description: Bug 2080179 - P1. Vendor application-services bf6e952d for credit card CVV storage r?joschmidt → Bug 2080179 - P1. Vendor application-services bf6e952d for credit card CVV storage r?joschmidt,Standard8,#firefox-source-docs-reviewers
Pushed by dlee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/897e3c368783 https://hg.mozilla.org/integration/autoland/rev/26b784784db5 P1. Vendor application-services bf6e952d for credit card CVV storage r=joschmidt,Standard8 https://github.com/mozilla-firefox/firefox/commit/9d7f864149c4 https://hg.mozilla.org/integration/autoland/rev/c070a3db4e31 P2. Store the credit card security code in the Rust store on Desktop r=credential-management-reviewers,NeilDeakin,joschmidt https://github.com/mozilla-firefox/firefox/commit/34ad370e2923 https://hg.mozilla.org/integration/autoland/rev/e2444b402005 P3. Only support credit card security codes while the Rust store is serving r=joschmidt,credential-management-reviewers
Flags: needinfo?(dlee)
Duplicate of this bug: 2081806
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch

Authored by https://github.com/DimiDL
https://github.com/mozilla/enterprise-firefox/commit/2c4c70cd841cf9d6d14294c78d609fa0e07adc1f
[enterprise-main] Bug 2080179 - P1. Vendor application-services bf6e952d for credit card CVV storage r=joschmidt

Authored by https://github.com/DimiDL
https://github.com/mozilla/enterprise-firefox/commit/91939a039c4e153afa02121fd079e9c2943f04c3
[enterprise-main] Bug 2080179 - P2. Store the credit card security code in the Rust store on Desktop r=credential-management-reviewers,NeilDeakin,joschmidt

Authored by https://github.com/DimiDL
https://github.com/mozilla/enterprise-firefox/commit/5d41bc07dec206ad511c2689f4b01ab74516c308
[enterprise-main] Bug 2080179 - P3. Only support credit card security codes while the Rust store is serving r=joschmidt,credential-management-reviewers

Authored by https://github.com/smolnar-sheriff
https://github.com/mozilla/enterprise-firefox/commit/91e559a5ac319f1accc78496910f79dc6e87d007
[enterprise-main] Revert "Bug 2080179 - P3. Only support credit card security codes while the Rust store is serving r=joschmidt,credential-management-reviewers" for causing documentation failures.

(via GitHub webhook, authenticated as shared-secret)

Regressions: 2082730
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: