Bug 1960560 - Part 3: Stop offering to import payment methods from Chrome on Windows. r=migration-reviewers,Gijs

Differential Revision: https://phabricator.services.mozilla.com/D248453
This commit is contained in:
Mike Conley
2025-05-09 17:27:48 +00:00
committed by mconley@mozilla.com
parent f62fb0b07c
commit 1126b77237
2 changed files with 13 additions and 3 deletions

View File

@@ -256,10 +256,17 @@ export class ChromeProfileMigrator extends MigratorBase {
];
if (lazy.ChromeMigrationUtils.supportsLoginsForPlatform) {
possibleResourcePromises.push(
this._GetPasswordsResource(profileFolder),
this._GetPasswordsResource(profileFolder)
);
// We no longer support importing payment methods from Chrome on
// Windows.
if (AppConstants.platform != "win") {
possibleResourcePromises.push(
this._GetPaymentMethodsResource(profileFolder)
);
}
}
// Some of these Promises might reject due to things like database
// corruptions. We absorb those rejections here and filter them

View File

@@ -31,7 +31,10 @@ run-if = ["os == 'linux'"]
["test_Chrome_corrupt_history.js"]
["test_Chrome_credit_cards.js"]
skip-if = ["os == 'linux' && os_version == '18.04' && processor == 'x86_64'"]
skip-if = [
"os == 'win'", # We no longer support importing payment methods from Chrome on Windows.
"os == 'linux' && os_version == '18.04' && processor == 'x86_64'",
]
["test_Chrome_extensions.js"]