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

Check for an existing lock screen before showing a new one #434

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

samsymons
Copy link
Collaborator

Task/Issue URL: https://app.asana.com/0/1199230911884351/1201856209410871/f
Tech Design URL:
CC: @brindy

Description:

This PR updates the Lock Screen logic to check whether one is already visible before displaying a new one. This issue couldn't lock users out of the app, but it looked weird.

Steps to test this PR:

  1. Comment out the #if DEBUG checks that automatically unlock debug builds of the app (specifically, unlockExistingInstallIfNecessary inside Waitlist.swift)
  2. Launch the app, and select "Reset Mac Waitlist Lock Screen" if one hasn't appeared
  3. Close the current window, open a new one, the lock screen should appear
  4. Minimize the window and maximize it repeatedly
  5. After doing this a few times, enter DAX as the code and proceed through the waitlist flow
  6. Check that the lock screen is dismissed and no more lock screens appear

Testing checklist:

  • Test with Release configuration

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@brindy brindy self-assigned this Feb 23, 2022
Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

LGTM!

@brindy brindy assigned samsymons and unassigned brindy Feb 23, 2022
@samsymons samsymons merged commit c206b09 into develop Feb 23, 2022
@samsymons samsymons deleted the sam/avoid-multiple-lock-screens branch February 23, 2022 21:19
samsymons added a commit that referenced this pull request Feb 24, 2022
# Via GitHub
* develop:
  Remove the Never option from the Save Credentials VC. (#437)
  Check the current sheets for a lock screen before presenting. (#434)
  macOS 12 crash report handling (#431)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo/SecureVault/View/PasswordManager.storyboard
samsymons added a commit that referenced this pull request Feb 24, 2022
* develop:
  Logins+ filtering and sorting (#427)
  Remove the Never option from the Save Credentials VC. (#437)
  Check the current sheets for a lock screen before presenting. (#434)
  macOS 12 crash report handling (#431)
samsymons added a commit that referenced this pull request Feb 24, 2022
# Via GitHub
* develop:
  Logins+ filtering and sorting (#427)
  Remove the Never option from the Save Credentials VC. (#437)
  Check the current sheets for a lock screen before presenting. (#434)
  macOS 12 crash report handling (#431)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo/AppDelegate/AppDelegate.swift
#	DuckDuckGo/NavigationBar/View/MoreOptionsMenu.swift
#	DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift
#	DuckDuckGo/SecureVault/Extensions/UserText+PasswordManager.swift
#	DuckDuckGo/SecureVault/View/PasswordManagementViewController.swift
#	DuckDuckGo/SecureVault/View/PasswordManager.storyboard
#	DuckDuckGo/Statistics/PixelArguments.swift
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