Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to AutofillCredentialIdentityStoreManager for lazy vault initialisation #3763

Merged
merged 5 commits into from
Jan 8, 2025

Conversation

amddg44
Copy link
Contributor

@amddg44 amddg44 commented Jan 3, 2025

Task/Issue URL: https://app.asana.com/0/414709148257752/1209045090157949/f
Tech Design URL:
CC:

Description:
Fixes an occasional crash in SyncCredentialsAdapter due to vault being initialised unnecessarily early for AutofillCredentialIdentityStoreManager in the app startup flow

Steps to test this PR:

  1. Launch the app and visit https://autofill.me/form/login-simple
  2. Enter some credentials and save when prompted
  3. Go the System Settings > General > AutoFill & Passwords and enable DDG as a password provider
  4. In Safari visit https://autofill.me/form/login-simple and confirm you are prompted to fill the credentials saved in Step 2

Definition of Done (Internal Only):

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

…provide a vault (and always provide SecureVaultReporter() since AutofillCredentialIdentityStoreManager can now init the vault lazily)
…er-vault-init

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
amddg44 added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jan 8, 2025
…itialised lazily (#1145)

Task/Issue URL:
https://app.asana.com/0/414709148257752/1209045090157949/f
iOS PR: duckduckgo/iOS#3763
macOS PR: duckduckgo/macos-browser#3702
What kind of version bump will this require?: Minor

**Description**:
Update to vault initialization in AutofillCredentialIdentityStoreManager
to only init on demand
@amddg44 amddg44 merged commit b9a6688 into main Jan 8, 2025
10 of 12 checks passed
@amddg44 amddg44 deleted the anya/sync-creds-adapter-vault-init branch January 8, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants