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

Autofill never save for site #1991

Merged
merged 15 commits into from
Dec 28, 2023
Merged

Autofill never save for site #1991

merged 15 commits into from
Dec 28, 2023

Conversation

amddg44
Copy link
Contributor

@amddg44 amddg44 commented Dec 19, 2023

Task/Issue URL: https://app.asana.com/0/1201645688934642/1205190244970075/f
Tech Design URL:
CC:

Description:
Adds the functionality to allow users to choose to "Never Save for this Site" from the autofill save password prompt, with the option to reset this list from the Settings screen.

Steps to test this PR:

  1. Visit https://fill.dev/form/login-simple and login using new credentials. In the Save Login prompt, confirm there is now a drop down menu option on the Don't Save button with the option to Never Ask For This Site
  2. Tap it and confirm this pixel is fired: m_mac_autofill_logins_save_login_exclude_site_confirmed
  3. Go back to https://fill.dev/form/login-simple
  4. Login again with new credentials and confirm that you no longer get the Save password prompt
  5. Visit another site and, logging with new credentials, confirm the Save password prompt is still presented for other sites
  6. Go to https://fill.dev/form/registration-email and confirm that Password Generation is disabled for this site (no key in the password field and tapping in the field does not trigger the generated password prompt)
  7. Visit another website with a registration form and confirm that Password Generation is still enabled for it
  8. Go the Settings screen and you should see a new section Excluded Sites with a Reset button option
  9. Tap the Reset button and confirm this pixel is fired: m_mac_autofill_settings_reset_excluded_displayed
  10. Tap Cancel in the action sheet that was presented and confirm this pixel is fired m_mac_autofill_settings_reset_excluded_dismissed
  11. Tap the Reset button and choose the red Reset option and confirm this pixel is fired: m_mac_autofill_settings_reset_excluded_confirmed
  12. The Excluded Sites section should now be gone (it is only added to the screen when a user has at least 1 site saved as Never Prompt)
  13. Go back to https://fill.dev/form/login-simple and confirm the Save password prompt now appears again

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Copy link
Collaborator

@SabrinaTardio SabrinaTardio left a comment

Choose a reason for hiding this comment

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

Great job! :)
LGTM
Left a couple of small comments

DuckDuckGo/Preferences/View/PreferencesAutofillView.swift Outdated Show resolved Hide resolved
if notNowSegmentedControl.segmentCount > 1 {
notNowSegmentedControl.setShowsMenuIndicator(true, forSegment: 1)
}
notNowSegmentedControl.selectedSegment = -1
Copy link
Collaborator

Choose a reason for hiding this comment

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

in what case would this happen?

…ave-site

# 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 Dec 28, 2023
Task/Issue URL: https://app.asana.com/0/1201645688934642/1205190244970075/f
iOS PR: duckduckgo/iOS#2280
macOS PR: duckduckgo/macos-browser#1991
What kind of version bump will this require?: Patch

Description:
Update for autofill never prompt to save for site support on macOS
@amddg44 amddg44 merged commit 129d140 into main Dec 28, 2023
14 checks passed
@amddg44 amddg44 deleted the autofill/anya-never-save-site branch December 28, 2023 11:06
samsymons added a commit that referenced this pull request Jan 8, 2024
* main: (35 commits)
  Update login item failure pixel (#2024)
  fix turn off sync error message (#2025)
  DBP: macOS - Scheduler Progress Notifications (#2023)
  DBP: Implement sign-out flow for DBP (#2009)
  Switch CI to Xcode 15.1 (#2022)
  fix(duckplayer): bump CSS for duckplayer nav loop fix (#1982)
  Bump Submodules/privacy-reference-tests from `a3acc21` to `6b7ad1e` (#2006)
  Bump version to 1.69.0 (99)
  DBP: Respect foreign constraints when deleting all user's data (#2014)
  DBP: Respect foreign constraints when deleting all user's data (#2014)
  Don't force reload tab when restoring state (#2016)
  Bump version to 1.69.0 (98)
  Update embedded files
  Update NetP launch agent logic to include build number (#2015)
  Always use 'sandbox' Application Support directory for Favicons Fetcher (#2013)
  Allow calculations in the address bar (#2012)
  Fix clickable area for buttons in 'Sync with Another Device' view (#2011)
  Fix for empty autofill state displayed on top of existing password items (#1998)
  Update error messages (#1999)
  Autofill never save for site (#1991)
  ...
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