Skip to content

Conversation

@cmonfortep
Copy link
Contributor

@cmonfortep cmonfortep commented Jun 5, 2020

Task/Issue URL: https://app.asana.com/0/1149059203486286/1179242968971107/f
Tech Design URL: https://app.asana.com/0/1149059203486286/1176922255591995/f
CC: https://app.asana.com/0/1149059203486286/1176752473916553/f

Description:
Help users preserve logins to sites they frequent by adding the fireproofing prompt after login events on Android.

Includes:

  • Login detection disable/enable from settings
  • Login detection core functionality
  • Login detection user prompt
  • Pixels for login detection for fireproofing

image

Steps to test this PR:
#Test 1: No login detection

  1. Fresh install
  2. Visit any site and log in
  3. Ensure we don't ask to fireproof that website

#Test 2: Login detection

  1. Go to Fireproof website settings
  2. Enable login detection
  3. Visit any site and log in (try twitter.com which uses its own domain for auth)
  4. Ensure dialog ask to fireproof that website you have been forwarded to
  5. Click on Fireproof
  6. Ensure snackbar appears

#Test 3: Login detection

  1. Go to Fireproof website settings
  2. Enable login detection
  3. Visit any site and log in (try wsj.com, user credentials inside Lastpass, different auth domain)
  4. Ensure dialog ask to fireproof that website you have been forwarded to (wsj.com and not dowjones)
  5. Click on Fireproof
  6. Ensure snackbar appears
  7. Additionally, you can clear data and check that the user keeps being signed in. (via menu -> My account)

#Test 4: pixel enable/disable login detection

  1. Go to Fireproof website settings
  2. Enable/Disable login detection
  3. Ensure pixel is sent (enable: m_fw_d_e / disable: m_fw_d_d)

#Test 5: pixel on dialogs

  1. With login detection enabled
  2. Visit any site and log in
  3. When dialog appears, ensure pixel sent: m_fw_ld_s
  4. Click on "not now", ensure pixel sent: m_fw_l_d
  5. Repeat and now click on "fireproof", ensure pixel sent: m_fw_l_a

#Test 6: pixel on overflow mane

  1. Visit any site
  2. If fireproof and remove fireproof to trigger pixels
  3. When fireproof, pixel sent: m_fw_a
  4. When removing fireproofing, pixel sent: m_fw_r

Internal references:

Software Engineering Expectations
Technical Design Template

cmonfortep added 30 commits May 21, 2020 09:40
…n_js

# Conflicts:
#	app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
#	app/src/main/java/com/duckduckgo/app/browser/WebViewClientListener.kt
#	app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/ui/FireproofWebsitesViewModel.kt
#	app/src/main/res/values/string-untranslated.xml
@cmonfortep cmonfortep requested a review from subsymbolic June 11, 2020 16:25
@cmonfortep cmonfortep requested a review from subsymbolic June 12, 2020 19:08
@cmonfortep
Copy link
Contributor Author

Hi @subsymbolic, I pushed some changes we agreed in https://app.asana.com/0/715106103902962/1180380358556618

PR description has been updated and also the description for the implementation task (https://app.asana.com/0/715106103902962/1179242968971107)

This is now ready to be reviewed again. Thanks!

@subsymbolic
Copy link
Contributor

subsymbolic commented Jun 25, 2020

Looks good! Feel free to merge once conflicts are fixed.

…n_fireproof

# Conflicts:
#	app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt
#	app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
…n_fireproof

# Conflicts:
#	app/src/main/res/values/styles.xml
@malmstein malmstein self-requested a review June 29, 2020 12:09
Copy link
Contributor

@malmstein malmstein left a comment

Choose a reason for hiding this comment

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

Checked the new strings and it looks as expected. Good stuff @cmonfortep

@cmonfortep cmonfortep merged commit b8a5a8f into develop Jun 29, 2020
@cmonfortep cmonfortep deleted the feature/cristian/fireproof/login_detection_fireproof branch June 29, 2020 15:18
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.

3 participants