зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1817182 - Avoid re-exporting AccountState from sync's utils.sys.mjs. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D170060
This commit is contained in:
Родитель
0f63d275c5
Коммит
48a366e1ec
|
@ -27,8 +27,7 @@ const { SCOPE_OLD_SYNC, LEGACY_SCOPE_WEBEXT_SYNC } = ChromeUtils.import(
|
|||
"resource://gre/modules/FxAccountsCommon.js"
|
||||
);
|
||||
|
||||
// and grab non-exported stuff via a backstage pass.
|
||||
export const { AccountState } = ChromeUtils.import(
|
||||
const { AccountState } = ChromeUtils.import(
|
||||
"resource://gre/modules/FxAccounts.jsm"
|
||||
);
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ var { ObjectUtils } = ChromeUtils.import(
|
|||
"resource://gre/modules/ObjectUtils.jsm"
|
||||
);
|
||||
var {
|
||||
AccountState,
|
||||
MockFxaStorageManager,
|
||||
SyncTestingInfrastructure,
|
||||
configureFxAccountIdentity,
|
||||
|
|
|
@ -11,7 +11,6 @@ var { TestUtils } = ChromeUtils.importESModule(
|
|||
"resource://testing-common/TestUtils.sys.mjs"
|
||||
);
|
||||
var {
|
||||
AccountState,
|
||||
MockFxaStorageManager,
|
||||
SyncTestingInfrastructure,
|
||||
configureFxAccountIdentity,
|
||||
|
|
|
@ -35,6 +35,9 @@ const { Status } = ChromeUtils.importESModule(
|
|||
const { TokenServerClient, TokenServerClientServerError } = ChromeUtils.import(
|
||||
"resource://services-common/tokenserverclient.js"
|
||||
);
|
||||
const { AccountState } = ChromeUtils.import(
|
||||
"resource://gre/modules/FxAccounts.jsm"
|
||||
);
|
||||
|
||||
const SECOND_MS = 1000;
|
||||
const MINUTE_MS = SECOND_MS * 60;
|
||||
|
|
Загрузка…
Ссылка в новой задаче