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

Other minor fixes #328

Merged
merged 2 commits into from
Jun 2, 2023
Merged

Other minor fixes #328

merged 2 commits into from
Jun 2, 2023

Conversation

GioSensation
Copy link
Member

@GioSensation GioSensation commented Jun 1, 2023

Reviewer: @alistairjcbrown
Asana: https://app.asana.com/0/0/1204734329088502/f

Description

Minor fixes:

  • Improve skipping OTP fields
  • Strip characters when saving phone numbers
  • Minor accuracy improvements

Steps to test

Signed-off-by: Emanuele Feliziani <feliziani.emanuele@gmail.com>
Signed-off-by: Emanuele Feliziani <feliziani.emanuele@gmail.com>
@GioSensation GioSensation self-assigned this Jun 1, 2023
@@ -41,7 +41,7 @@ class FormAnalyzer {
*/
this.signals = []

this.evaluateElAttributes(input, 3, true)
this.evaluateElAttributes(input, 1, true)
Copy link
Member Author

Choose a reason for hiding this comment

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

This has a very minor impact, rightly so, and it's lowered further here. It's a legacy from the very first implementation when we were only expecting single-field forms and in fact it only runs on the very first field we encounter for each form. I played around with it, trying to actually run this on all input fields, removing it, etc. Ultimately, keeping it for only one field and lowering its impact yielded the best result.

@@ -382,7 +382,7 @@ <h3>Enjoy with signing in</h3>
form signature in host form: 14398989862180533438
field frame token: 5AE7930B5E80C2ACB53A029D04125578
form renderer id: 0
field renderer id: 30" data-ddg-testresultelementid="552903" data-manual-scoring="username">
field renderer id: 30" data-ddg-testresultelementid="552903" data-manual-scoring="emailAddress">
Copy link
Member Author

Choose a reason for hiding this comment

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

Miscategorized previously because of multiple forms in the page.

@GioSensation GioSensation marked this pull request as ready for review June 1, 2023 11:53
Copy link
Member

@alistairjcbrown alistairjcbrown left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@alistairjcbrown alistairjcbrown merged commit 44cd844 into main Jun 2, 2023
@alistairjcbrown alistairjcbrown deleted the ema/other-minor-fixes branch June 2, 2023 10:57
CDRussell pushed a commit to duckduckgo/Android that referenced this pull request Jun 19, 2023
Task/Issue URL:
https://app.asana.com/0/1204742406448894/1204742406448894
Autofill Release:
https://github.com/duckduckgo/duckduckgo-autofill/releases/tag/7.2.0


## Description
Updates Autofill to version
[7.2.0](https://github.com/duckduckgo/duckduckgo-autofill/releases/tag/7.2.0).

### Autofill 7.2.0 release notes
## What's Changed
* Fix Windows UI line bug by @greyivy in
duckduckgo/duckduckgo-autofill#325
* Remove separator above Duck Address whenever it's first item by
@alistairjcbrown in
duckduckgo/duckduckgo-autofill#329
* macOS support for in-context signup by @alistairjcbrown in
duckduckgo/duckduckgo-autofill#317
* Other minor fixes by @GioSensation in
duckduckgo/duckduckgo-autofill#328


**Full Changelog**:
duckduckgo/duckduckgo-autofill@7.1.0...7.2.0

## Steps to test
This release has been tested during autofill development. For smoke test
steps see [this
task](https://app.asana.com/0/1198964220583541/1200583647142330/f).

Co-authored-by: alistairjcbrown <alistairjcbrown@users.noreply.github.com>
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