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

Pass config data to Autofill UserScript #418

Merged
merged 13 commits into from
Feb 21, 2022
Merged

Conversation

SlayterDev
Copy link
Contributor

@SlayterDev SlayterDev commented Feb 3, 2022

Task/Issue URL: https://app.asana.com/0/72649045549333/1201640241287329/f
Tech Design URL: https://app.asana.com/0/481882893211075/1201716942816252/f
CC:

Description:
This PR adds remote config support for autofill. Depends on duckduckgo/BrowserServicesKit#61

Steps to test this PR:

  1. Modify privacy config manager to use embedded config
  2. Ensure autofill is enabled in macos-config.json
  3. Visit https://duckduckgo.com/email/ and ensure you can sign in
  4. Visit https://privacy-test-pages.glitch.me/autofill/modal.html and https://privacy-test-pages.glitch.me/autofill/form-submission.html and ensure they behave as expected

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

@SlayterDev SlayterDev changed the title [WIP] Pass config data to Autofill UserScript Pass config data to Autofill UserScript Feb 16, 2022
@bwaresiak bwaresiak self-assigned this Feb 17, 2022
@bwaresiak
Copy link
Collaborator

@SlayterDev I'd assume it should migrate existing users nicely - I have some problems when testing autofill, basically Dax icon won't show for the email fields even if I change the config to embedded one.

@bwaresiak
Copy link
Collaborator

@SlayterDev It works now - question is: shall we display dax icon on websites that are in the feature exception list?

@SlayterDev
Copy link
Contributor Author

@SlayterDev It works now - question is: shall we display dax icon on websites that are in the feature exception list?

No to exceptions. The feature would be disabled so we shouldn't show the icon.

@bwaresiak
Copy link
Collaborator

I'm asking as I've added website to exception list (manually) but Dax icon is still visible there - tapping on it does nothing.

Copy link
Collaborator

@bwaresiak bwaresiak left a comment

Choose a reason for hiding this comment

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

Everything looks good now, must've ben something on my side. Great job, pease merge when conflicts are resolved :)

@SlayterDev SlayterDev merged commit ca41412 into develop Feb 21, 2022
@SlayterDev SlayterDev deleted the brad/autofill-config branch February 21, 2022 16:41
samsymons added a commit that referenced this pull request Feb 22, 2022
* develop:
  Waiting for ContentBlockingRules to be applied before navigation (#402)
  Cookie prompt management (#312)
  Pass config data to Autofill UserScript (#418)
samsymons added a commit that referenced this pull request Feb 22, 2022
* develop:
  Waiting for ContentBlockingRules to be applied before navigation (#402)
  Cookie prompt management (#312)
  Pass config data to Autofill UserScript (#418)
  Fix video fullscreen exit crash (#295)
samsymons added a commit that referenced this pull request Feb 23, 2022
…ntication

# By Alexey Martemyanov (1) and others
* sam/logins-filtering-and-sorting:
  Disable the search field when editing.
  Waiting for ContentBlockingRules to be applied before navigation (#402)
  Cookie prompt management (#312)
  Pass config data to Autofill UserScript (#418)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo/Common/Utilities/UserDefaultsWrapper.swift
#	DuckDuckGo/Preferences/Model/PreferenceSections.swift
#	DuckDuckGo/Preferences/View/PrivacySecurityPreferencesTableCellView.xib
jonathanKingston pushed a commit that referenced this pull request Feb 25, 2022
* Pass config data to Autofill UserScript

* Update BSK

* Update BSK

* Update embedded config hash

* Fix dashboard commit

* Adopt Autofill source provider

* Lint fix

* Update BSK reference

* Update BSK reference

* Update config

* Update etag and hash
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