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

Fix Save Credentials popover on macOS Ventura #672

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented Aug 5, 2022

Task/Issue URL: https://app.asana.com/0/0/1202726027165123/f

Description:
Keep Save Credentials popover on screen while presenting Fireproof alert.
The alert is presented in context of the popover window, and apparently closing the window
while showing the alert breaks things on macOS Ventura.
The alternative would be to present Fireproof alert in context of the main application window,
but that seems counterintuitive since the alert is a consequence of the action in Save Credentials
popover. My solution keeps Save Credentials popover on screen until Fireproof alert is acted upon.

Steps to test this PR:

  1. Run the app on macOS Ventura
  2. Go to Main menu -> Debug -> UI Triggers -> Show Save Credentials Popover; alternatively try logging in to a website for which credentials are not stored in Autofill
  3. In the Save Credentials popover click "Not now"
  4. Observe that Fireproof alert is presented on top of Save Credentials popover
  5. Click "Not now" in the Fireproof alert
  6. Verify that both the alert and the popover are dismissed and the window dimming goes away.

Repeat the same on macOS Monterey (for the record, I tested it and it worked for me).

Testing checklist:

  • Test with Release configuration
  • Test proper deallocation of tabs
  • Make sure committed submodule changes are desired

Internal references:

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

@samsymons samsymons self-assigned this Aug 5, 2022
@@ -278,7 +278,7 @@ class TabLazyLoaderTests: XCTestCase {
selectedUrlTab.reload()

// Then
waitForExpectations(timeout: 0.3)
waitForExpectations(timeout: 1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

Looks good 🎉

@samsymons samsymons assigned ayoy and unassigned samsymons Aug 11, 2022
@ayoy ayoy merged commit 367f166 into develop Aug 11, 2022
@ayoy ayoy deleted the dominik/ventura-save-credentials branch August 11, 2022 19:51
samsymons added a commit that referenced this pull request Aug 15, 2022
* develop:
  Bookmarks phase 2 bug fixes (#686)
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
samsymons added a commit that referenced this pull request Aug 17, 2022
* develop:
  Fire Button quick wins (#677)
  Bookmarks phase 2 bug fixes (#686)
  Set version to 0.28.3.
  Only clear the selection if the selection needs to change. (#689)
  Set version to 0.28.2.
  Update embedded files for 0.28.2.
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
samsymons added a commit that referenced this pull request Aug 18, 2022
# By Sam Symons (14) and others
# Via GitHub (1) and others
* develop: (45 commits)
  Revert "Prevent the app from quitting while the Fire button is active" (#690)
  Disable link preview. (#691)
  Fire Button quick wins (#677)
  Bookmarks phase 2 bug fixes (#686)
  Set version to 0.28.3.
  Only clear the selection if the selection needs to change. (#689)
  Set version to 0.28.2.
  Update embedded files for 0.28.2.
  Attempt to stop the new tab button from jumping around the UI (#685)
  Fix of threading issues related to history causing crashes  (#688)
  Add empty autofill isEnabled checks (to update BSK) (#683)
  Bump BSK to a version that uses updated GRDB (#647)
  Fix Save Credentials popover on macOS Ventura (#672)
  Update BSK to latest version + noop updates (#669)
  Update selectedTabViewModel only when it actually changes (#681)
  Update BSK to version 21.0.0 (#680)
  Always add the Autoconsent script (#666)
  Optimisation of history entry saving (#675)
  Use localized compare to sort autofill items (#674)
  0.28.1
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
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