[CredentialsImport] Call credentials flow call first, and then close parent #723
+5
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reviewer: @GioSensation
Asana: https://app.asana.com/0/1203822806345703/1208958786488368/f
Description
On windows
IWebView
disposes aftercloseAutofillParent
more efficiently (since https://github.com/duckduckgo/windows-browser/pull/2658/files#diff-e9708afe1dc71c217b0379bc7531fd02309a7ce40e69ce7e60e3bed7edde1160) now causingstartCredentialsImportFlow
call to be late. This causes the native import flow UI to not open anymore.This PR changes the sequence of
closeAutofillParent
andstartCredentialsImportFlow
calls. Note that this will also affect MacOS, it does affect MAC a little bit as the parent closes a bit later than the import prompt. I think it's not bad enough, and doesn't call for multiple implementationsTests
(Before)
close-parent-before-mac.mov
(After, regression in UX?)
close-parent-after-mac.mov
close-parent-windows.mov