Skip to content

Bug 2042222 - Wired up passwords import flow - #266

Closed
fmasalha wants to merge 1 commit into
mozilla-firefox:autolandfrom
fmasalha:passwords-import-wiring
Closed

Bug 2042222 - Wired up passwords import flow#266
fmasalha wants to merge 1 commit into
mozilla-firefox:autolandfrom
fmasalha:passwords-import-wiring

Conversation

@fmasalha

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

mozilla-code-review[bot]
mozilla-code-review Bot previously approved these changes May 25, 2026
override suspend fun importPasswordsFromUri(uri: Uri): Result<ImportResult> = runCatching {
val inputStream = uriOpener.open(uri).getOrThrow()
val parseResult = inputStream.use { parser.parse(it) }.getOrThrow()
val imported = parseResult.logins.count { entry ->

@fmasalha fmasalha May 26, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to use the addmany that jeff added the bindings for once it is added to storage in fenix

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewLifecycleOwner,
) { _, bundle ->
if (ImportPasswordsDialogFragment.decodeResult(bundle) is PasswordsImporterResult.Success) {
loginsStore?.dispatch(LoginsListAppeared)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does onViewCreated get called coming back to this list? I'm curious why we need another loginsStore?.dispatch(LoginsListAppeared)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but the collection is scoped to viewLifecycleOwner so it isnt a problem when navigating away and returning. We need to setup the collection somewhere to ensure the page updates after a import completes.

@fmasalha
fmasalha force-pushed the passwords-import-wiring branch from 09576cf to 74d903e Compare June 1, 2026 16:30
@lando-web
lando-web Bot requested a review from a team June 1, 2026 16:32
@fmasalha

fmasalha commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@mozilla-code-review
mozilla-code-review Bot dismissed their stale review June 1, 2026 18:16

This review is now deprecated.

@mozilla-code-review

Copy link
Copy Markdown

Previous issues have been fixed. This pull request is 🆗

@fmasalha
fmasalha force-pushed the passwords-import-wiring branch from 74d903e to 355c302 Compare June 9, 2026 18:56
@lando-web
lando-web Bot requested a review from a team June 9, 2026 18:56
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

@fmasalha
fmasalha force-pushed the passwords-import-wiring branch from 355c302 to a07fd16 Compare June 10, 2026 01:07
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

@fmasalha

Copy link
Copy Markdown
Contributor Author

@lando-worker

lando-worker Bot commented Jun 10, 2026

Copy link
Copy Markdown

Pull request closed by commit 2b7f299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants