Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Update guids by personal-data-changed #4659

Merged
merged 1 commit into from
Oct 12, 2016
Merged

Update guids by personal-data-changed #4659

merged 1 commit into from
Oct 12, 2016

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Oct 11, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

fix #4349
requires brave/muon#70

Auditors: @bridiver

Test Plan:

  1. Prepare a fresh install brave (version > 0.12.3)
  2. Lauch brave
  3. open about:autofill
  4. Add an address
  5. The address entry should show on the page
  6. Add a credit card
  7. The credit card entry should show on the page
  8. Verify address and credit card on http://www.roboform.com/filling-test-all-fields

@darkdh darkdh added this to the 0.12.5dev milestone Oct 11, 2016
module.exports.init = () => {
process.on('personal-data-changed', (profileGuids, creditCardGuids) => {
setImmediate(() => {
appActions.updateAutofillAddress(profileGuids)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we combine these into a single autofillDataChanged action? Every emit from the appStore causes another render cycle for a lot of components and it also follows the declarative action pattern better


let guids = appState.getIn(['autofill', 'addresses', 'guid'])
const guid = Filtering.addAutofillAddress(action.detail.toJS(),
Filtering.addAutofillAddress(action.detail.toJS(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't worry about this right now, but we should pull these methods out of filtering and move them to the new autofill.js module you created at some point. They don't really need Filtering anymore because they don't have to be sent to all the sessions

@darkdh
Copy link
Member Author

darkdh commented Oct 11, 2016

feedback addressed in d5e9876. Thank you

@bridiver
Copy link
Collaborator

@bbondy this is good to merge when we get the electron changes in

@bridiver
Copy link
Collaborator

@darkdh can you squash the commits?

fix #4349
requires brave/muon#70

Auditors: @bridiver

Test Plan:
1. Prepare a fresh install brave (version > 0.12.3)
2. Lauch brave
3. open about:autofill
4. Add an address
5. The address entry should show on the page
6. Add a credit card
7. The credit card entry should show on the page
8. Verify address and credit card on http://www.roboform.com/filling-test-all-fields
@darkdh
Copy link
Member Author

darkdh commented Oct 11, 2016

@bridiver , done!

@bbondy
Copy link
Member

bbondy commented Oct 12, 2016

++

@bbondy bbondy merged commit d58dc7b into master Oct 12, 2016
@bbondy
Copy link
Member

bbondy commented Oct 12, 2016

Were on 1.4.13 now btw and it has the change for electron which this requires.

@luixxiul
Copy link
Contributor

@bbondy I cannot verify filling credit card info because of "disabled due to unsecure connection". Is it expected?

@darkdh
Copy link
Member Author

darkdh commented Oct 15, 2016

because you are on http page, credit card information won't be allowed to transfer on non-secure channel. Please try to upgrade to https.

@bridiver
Copy link
Collaborator

maybe we can have a better message for it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saved address doesn't show under about:autofill but shows suggestion on forms
5 participants