Fennec migration: enable logins migration
parent
45c6e3a784
commit
42d6915699
|
@ -200,7 +200,7 @@ class Core(private val context: Context) {
|
|||
*/
|
||||
fun getSecureAbove22Preferences() = SecureAbove22Preferences(context, KEY_STORAGE_NAME)
|
||||
|
||||
private val passwordsEncryptionKey: String =
|
||||
val passwordsEncryptionKey: String =
|
||||
getSecureAbove22Preferences().getString(PASSWORDS_KEY)
|
||||
?: generateEncryptionKey(KEY_STRENGTH).also {
|
||||
if (context.settings().passwordsEncryptionKeyGenerated) {
|
||||
|
|
|
@ -34,6 +34,10 @@ class MigratingFenixApplication : FenixApplication() {
|
|||
.migrateOpenTabs(this.components.core.sessionManager)
|
||||
.migrateHistory(this.components.core.historyStorage)
|
||||
.migrateBookmarks(this.components.core.bookmarksStorage)
|
||||
.migrateLogins(
|
||||
this.components.core.passwordsStorage.store,
|
||||
this.components.core.passwordsEncryptionKey
|
||||
)
|
||||
.migrateFxa(this.components.backgroundServices.accountManager)
|
||||
.build()
|
||||
|
||||
|
|
Loading…
Reference in New Issue