Support for establishing a username field without a password field#880
Support for establishing a username field without a password field#880
Conversation
cscharf
left a comment
There was a problem hiding this comment.
Overall looks good, just had a few questions/comments.
| new KnownUsernameField("accounts.google.com","ServiceLogin", "Email"), | ||
| new KnownUsernameField("amazon.com","signin", "ap_email_login"), |
There was a problem hiding this comment.
Some formatting issues here with spacing.
There was a problem hiding this comment.
Sorry about that - thanks @cscharf for fixing
|
Hello @mportune-bw, After uncommenting the 5 lines below: ... I did a series of tests and here are the results obtained. Results
Google ℹ️ [PR to come]View me ...UPDATED:Fails to get prompt 99% of the time (not 100% anymore!). But ... I only managed to get this very basic login page once, and without doing anything special. The above values corresponding (manually checked too), the prompt therefore appeared. Anyway, almost every time (even on a "basic" 1280x720 smartphone), from Belgium at least (despite arriving on accounts.google.com also), I get this instead (view it here and here — more modern/complex page, yet still in mobile mode), whatever the display language: ➡️ Context: Tapped on the ℹ️ Just for info: In my case 💡 Proposal: The line below is functional in my case (need to check on your side now): ↪️ Mobile version test: OK ✔️ / Desktop version test: OK ✔️ / International test: OK? (should — OK with a UK proxy at least) ↪️ So it would be good here to use both your values (the existing entry) and mine (this one above), IMHO. 👍 Amazon ℹ️ [PR to come]View me ...1. Mobile version test: OK ✔️2. Desktop version test: NOK ❌💡 Proposal: ➡️ It is particularly essential here to put the mobile value ( (*) In an account creation subsection located in first position**, displayed instantly when a radio button is tapped — see A (before tapped) and B (after tapped).(**) Just for information, note that a useless prompt will always be available in this subsection by the way, probably as the first
|
|
Finally, it might be good to add support for inputs that do not have an ID, just having a name (common in forms). 👍 Currently no way, it seems, to add Backblaze.com (info):Thank you again for all your work! |
|
[UPDATE 1] Google part of the long post updated! 🆕 [UPDATE 6] Pull request made. Link added. |
Accessibility: Added support for establishing a username field without the presence of a password field, or for overriding a username field with a different one (think github homepage user/email/pass form). As there doesn't appear to be a reliable way to make this work automagically, this takes the manual route where we simply maintain a list of sites and their corresponding username field IDs.
I opted not to use the entire URI as some of the variations were endless depending on locale, continuation path args, etc. So we're keying off the authority and the end of the path to establish a site & page match, then on the view ID for a username field match.
Additional data was needed earlier in the process to establish the username field, so some operations were shuffled around to prevent them from running twice.