Closed Bug 1782091 Opened 3 years ago Closed 2 years ago

Create IdentityCredential state map

Categories

(Core :: DOM: Credential Management, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: bvandersloot, Assigned: bvandersloot)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Depends on: 1782093
No longer blocks: 1782083
No longer depends on: 1782093
Blocks: 1782093
Blocks: 1782083
No longer blocks: 1782083
Depends on: 1782083
Blocks: 1782066

First creation of the FedCM account state map.

This is a disk key-value store that holds the map as described by https://fedidcg.github.io/FedCM/#browser-api-state-machine.
In particular, the values are stored as JSON defined in the WebIDL here and the keys are rpOrigin|idpOrigin|base64(credentialID).

TODO: Don't persist from within Private Browsing
TODO: support the ClearDataService as an extension of the permissions or passwords

This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Assignee: nobody → bvandersloot
Status: NEW → ASSIGNED
Attachment #9301120 - Attachment is obsolete: true
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f38f252060f Create IdentityCredential state map, r=timhuang,pbz
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a2030d35f960 Create IdentityCredential state map, r=timhuang,pbz

Backed out for causing multiple mozStorageService related failures

Backout link

Push with failures

Failure log

Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1475247d538f Create IdentityCredential state map, r=timhuang,pbz

Backed out for causing bc failures in toolkit/components/cleardata/tests/browser/browser_quota.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/a6577d5920c698d8aac2e77d3cc6fc249d4d4702

Push with failures

Failure log

INFO - Buffered messages finished
[task 2022-12-02T22:26:25.361Z] 22:26:25     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/cleardata/tests/browser/browser_quota.js | 16777216 == 0 - JS frame :: chrome://mochitests/content/browser/toolkit/components/cleardata/tests/browser/browser_quota.js :: runTest/</< :: line 98
[task 2022-12-02T22:26:25.361Z] 22:26:25     INFO - Stack trace:
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d8927ee6631c Create IdentityCredential state map, r=timhuang,pbz
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Regressions: 1803960
Regressions: 1803419
No longer regressions: 1803419
Flags: needinfo?(bvandersloot)
Regressions: 1823726
Regressions: 1899319
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: