mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1913967 - Move shared modules to a shared folder. r=sylvestre,frontend-codestyle-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D219659
This commit is contained in:
parent
f181da604b
commit
f0a84cf2e4
@ -1442,7 +1442,7 @@ toolkit/components/certviewer/content/vendor/
|
||||
toolkit/components/jsoncpp/
|
||||
toolkit/components/ml/vendor/
|
||||
toolkit/components/normandy/vendor/
|
||||
toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs
|
||||
toolkit/components/passwordmgr/shared/PasswordRulesParser.sys.mjs
|
||||
toolkit/components/protobuf/
|
||||
toolkit/components/reader/readability/
|
||||
toolkit/components/resistfingerprinting/content/gl-matrix.js
|
||||
|
@ -52,11 +52,11 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||
FORM_SUBMISSION_REASON: "resource://gre/actors/FormHandlerChild.sys.mjs",
|
||||
InsecurePasswordUtils: "resource://gre/modules/InsecurePasswordUtils.sys.mjs",
|
||||
LoginAutoCompleteResult: "resource://gre/modules/LoginAutoComplete.sys.mjs",
|
||||
LoginFormFactory: "resource://gre/modules/LoginFormFactory.sys.mjs",
|
||||
LoginFormFactory: "resource://gre/modules/shared/LoginFormFactory.sys.mjs",
|
||||
LoginHelper: "resource://gre/modules/LoginHelper.sys.mjs",
|
||||
LoginRecipesContent: "resource://gre/modules/LoginRecipes.sys.mjs",
|
||||
LoginManagerTelemetry: "resource://gre/modules/LoginManagerTelemetry.sys.mjs",
|
||||
NewPasswordModel: "resource://gre/modules/NewPasswordModel.sys.mjs",
|
||||
NewPasswordModel: "resource://gre/modules/shared/NewPasswordModel.sys.mjs",
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(
|
||||
|
@ -34,7 +34,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||
MigrationUtils: "resource:///modules/MigrationUtils.sys.mjs",
|
||||
NimbusFeatures: "resource://nimbus/ExperimentAPI.sys.mjs",
|
||||
WebAuthnFeature: "resource://gre/modules/WebAuthnFeature.sys.mjs",
|
||||
PasswordGenerator: "resource://gre/modules/PasswordGenerator.sys.mjs",
|
||||
PasswordGenerator: "resource://gre/modules/shared/PasswordGenerator.sys.mjs",
|
||||
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.sys.mjs",
|
||||
});
|
||||
|
||||
|
@ -6,8 +6,9 @@ const lazy = {};
|
||||
|
||||
ChromeUtils.defineESModuleGetters(lazy, {
|
||||
LoginHelper: "resource://gre/modules/LoginHelper.sys.mjs",
|
||||
PasswordGenerator: "resource://gre/modules/PasswordGenerator.sys.mjs",
|
||||
PasswordRulesParser: "resource://gre/modules/PasswordRulesParser.sys.mjs",
|
||||
PasswordGenerator: "resource://gre/modules/shared/PasswordGenerator.sys.mjs",
|
||||
PasswordRulesParser:
|
||||
"resource://gre/modules/shared/PasswordRulesParser.sys.mjs",
|
||||
RemoteSettings: "resource://services-settings/remote-settings.sys.mjs",
|
||||
});
|
||||
|
||||
|
@ -31,7 +31,6 @@ EXTRA_JS_MODULES += [
|
||||
"crypto-SDR.sys.mjs",
|
||||
"InsecurePasswordUtils.sys.mjs",
|
||||
"LoginAutoComplete.sys.mjs",
|
||||
"LoginFormFactory.sys.mjs",
|
||||
"LoginHelper.sys.mjs",
|
||||
"LoginInfo.sys.mjs",
|
||||
"LoginManager.shared.mjs",
|
||||
@ -43,13 +42,17 @@ EXTRA_JS_MODULES += [
|
||||
"LoginManagerTelemetry.sys.mjs",
|
||||
"LoginRecipes.sys.mjs",
|
||||
"LoginRelatedRealms.sys.mjs",
|
||||
"NewPasswordModel.sys.mjs",
|
||||
"PasswordGenerator.sys.mjs",
|
||||
"PasswordRulesManager.sys.mjs",
|
||||
"PasswordRulesParser.sys.mjs",
|
||||
"storage-json.sys.mjs",
|
||||
]
|
||||
|
||||
EXTRA_JS_MODULES.shared += [
|
||||
"shared/LoginFormFactory.sys.mjs",
|
||||
"shared/NewPasswordModel.sys.mjs",
|
||||
"shared/PasswordGenerator.sys.mjs",
|
||||
"shared/PasswordRulesParser.sys.mjs",
|
||||
]
|
||||
|
||||
if CONFIG["OS_TARGET"] != "Android":
|
||||
EXTRA_JS_MODULES += [
|
||||
"CSV.sys.mjs",
|
||||
|
@ -50,7 +50,7 @@ add_task(async function test() {
|
||||
[{ login, usernameRequested }],
|
||||
async ({ login: addedLogin, usernameRequested: aUsernameRequested }) => {
|
||||
const { LoginFormFactory } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginFormFactory.sys.mjs"
|
||||
"resource://gre/modules/shared/LoginFormFactory.sys.mjs"
|
||||
);
|
||||
const { LoginManagerChild } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginManagerChild.sys.mjs"
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
<script type="application/javascript">
|
||||
const { LoginFormFactory } = SpecialPowers.ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginFormFactory.sys.mjs"
|
||||
"resource://gre/modules/shared/LoginFormFactory.sys.mjs"
|
||||
);
|
||||
|
||||
add_setup(async () => {
|
||||
|
@ -10,7 +10,7 @@
|
||||
<body>
|
||||
<script type="application/javascript">
|
||||
const { LoginFormFactory } = SpecialPowers.ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginFormFactory.sys.mjs"
|
||||
"resource://gre/modules/shared/LoginFormFactory.sys.mjs"
|
||||
);
|
||||
const { LoginManagerChild } = SpecialPowers.ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginManagerChild.sys.mjs"
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const { PasswordGenerator } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PasswordGenerator.sys.mjs"
|
||||
"resource://gre/modules/shared/PasswordGenerator.sys.mjs"
|
||||
);
|
||||
|
||||
add_task(async function test_shuffleString() {
|
||||
|
@ -4,13 +4,13 @@
|
||||
|
||||
"use strict";
|
||||
const { PasswordGenerator } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PasswordGenerator.sys.mjs"
|
||||
"resource://gre/modules/shared/PasswordGenerator.sys.mjs"
|
||||
);
|
||||
const { PasswordRulesManagerParent } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PasswordRulesManager.sys.mjs"
|
||||
);
|
||||
const { PasswordRulesParser } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/PasswordRulesParser.sys.mjs"
|
||||
"resource://gre/modules/shared/PasswordRulesParser.sys.mjs"
|
||||
);
|
||||
const { RemoteSettings } = ChromeUtils.importESModule(
|
||||
"resource://services-settings/remote-settings.sys.mjs"
|
||||
|
@ -5,7 +5,7 @@
|
||||
"use strict";
|
||||
|
||||
const { LoginFormFactory } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginFormFactory.sys.mjs"
|
||||
"resource://gre/modules/shared/LoginFormFactory.sys.mjs"
|
||||
);
|
||||
|
||||
const { LoginManagerChild } = ChromeUtils.importESModule(
|
||||
|
@ -6,7 +6,7 @@
|
||||
"use strict";
|
||||
|
||||
const { LoginFormFactory } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginFormFactory.sys.mjs"
|
||||
"resource://gre/modules/shared/LoginFormFactory.sys.mjs"
|
||||
);
|
||||
const { LoginFormState } = ChromeUtils.importESModule(
|
||||
"resource://gre/modules/LoginManagerChild.sys.mjs"
|
||||
|
@ -2051,7 +2051,7 @@ product.
|
||||
<h1><a id="apple-password-rules-parser"></a>Apple Password Rules Parser License</h1>
|
||||
</td>
|
||||
<td>
|
||||
<p>This license applies to the file <code>toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs</code>.</p>
|
||||
<p>This license applies to the file <code>toolkit/components/passwordmgr/shared/PasswordRulesParser.sys.mjs</code>.</p>
|
||||
</td>
|
||||
<td>
|
||||
<pre>
|
||||
@ -2425,7 +2425,7 @@ product.
|
||||
<li><code>toolkit/components/formautofill/shared/FormAutofillNameUtils.sys.mjs</code></li>
|
||||
<li><code>editor/libeditor/EditorEventListener.cpp</code></li>
|
||||
<li><code>security/sandbox/</code></li>
|
||||
<li><code>toolkit/components/passwordmgr/PasswordGenerator.sys.mjs</code></li>
|
||||
<li><code>toolkit/components/passwordmgr/shared/PasswordGenerator.sys.mjs</code></li>
|
||||
<li><code>widget/cocoa/GfxInfo.mm</code></li>
|
||||
<li><code>widget/windows/nsWindow.cpp</code></li>
|
||||
</ul>
|
||||
|
@ -186,7 +186,7 @@ toolkit/components/certviewer/content/vendor/
|
||||
toolkit/components/jsoncpp/
|
||||
toolkit/components/ml/vendor/
|
||||
toolkit/components/normandy/vendor/
|
||||
toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs
|
||||
toolkit/components/passwordmgr/shared/PasswordRulesParser.sys.mjs
|
||||
toolkit/components/protobuf/
|
||||
toolkit/components/reader/readability/
|
||||
toolkit/components/resistfingerprinting/content/gl-matrix.js
|
||||
|
Loading…
Reference in New Issue
Block a user