Add test coverage for the addresses.storage.rust.enabled pref
Categories
(Toolkit :: Form Autofill, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: dimi, Assigned: dimi)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
Bug 2058441 added the Rust address store, but the address tests only exercise the JSON one.
Run the existing address browser tests, and test_getRecords.js, a second time with extensions.formautofill.addresses.storage.rust.enabled set, so the store is covered before it serves addresses by default. Addresses only: credit cards are not copied into the Rust store.
| Assignee | ||
Comment 1•2 months ago
|
||
Two manifests run existing address tests a second time, with the Rust store
serving every address read and write:
-
test/browser/rust/browser.toml includes test/browser/address/ wholesale, so
those tests and their skip-if annotations are inherited rather than copied.
The entries it lists are the address tests that live in test/browser/ instead,
whose manifest also holds credit card, passport and ML tests that must not run
against this store; each of those is a shim that loads its original. -
test/unit/xpcshell_rust.toml does the same for test_getRecords.js, and names
the storage tests that cannot be shared: they reach either for sync APIs the
Rust adapter does not answer, since its sync goes through a bridged engine, or
past the collection API into the JSON store.
Both head.js files assert rust.active once the pref is set. The pref only asks:
FormAutofillStorage keeps serving JSON until the migration completes, so a run
could otherwise pass having never touched the Rust store.
browser_address_migration.js moves out of test/browser/rust/, because it covers
the migration rather than re-running a test under a different pref. Its fixture
now carries a multi-line street address and a phone number, so the fields Rust
derives on read from the single column it stores are asserted against a record
the migration copied.
Everything left under test/browser/rust/, and every entry in xpcshell_rust.toml,
is a second run of a test that lives elsewhere, so both can be deleted whole
once the Rust store is the only one.
Comment 3•2 months ago
|
||
| bugherder | ||
Comment 5•2 months ago
|
||
Backed out for causing bc failures @ browser_autofill_address_name.js & browser_address_migration.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/d0cb2c35ec74eb924b504b2aca515903a208788a
Comment 6•2 months ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/d0cb2c35ec74
Comment 8•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 months ago
|
Updated•1 month ago
|
Description
•