gecko-dev/toolkit/components/credentialmanagement/tests/xpcshell/head.js
Benjamin VanderSloot 98cbae5614 Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
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.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-12-03 18:50:31 +00:00

9 lines
298 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
const { XPCOMUtils } = ChromeUtils.importESModule(
"resource://gre/modules/XPCOMUtils.sys.mjs"
);
const { TestUtils } = ChromeUtils.import(
"resource://testing-common/TestUtils.jsm"
);