[KnownUsernameField] Compatibility with more browsers#1000
[KnownUsernameField] Compatibility with more browsers#1000mpbw2 merged 1 commit intobitwarden:masterfrom contribucious:KnownUsernameField--browser-compatibility
Conversation
Regarding the case of Samsung Internet BrowserAlthough this PR solves this problem in this browser as well, there is another problem in this browser, preventing the new system from working. Read more ...↪️ This browser hides the path. And, on the user side, there doesn't even seem to be any flags available on this subject (to force the display of the path) in the list of flags available at |
|
I agree the new trend of hiding paths is slowly going to render this feature inoperable. It would be lovely if a viable alternative presented itself. |

Context
Currently, the new system allowing "email/username" field detection without "password" field, which uses the accessibility service, only works well with some browsers like Chrome.
Indeed, if the subdomain is specific like
signin.example.com: no problem!But if it's
www.example.com, Bitwarden (with current entries) will assume that the browser will hide this part for comparison. (This is a new trend in browsers.)Problem
This is only the case in some browsers (currently: Chrome, Firefox beta, etc.).
Problem (illustration with Amazon but same with PayPal for ex.)
View me ...
➡️ Chrome ✔️ (match, because Chrome hides
www.)View me ...
➡️ Firefox for Android 68.x ❌ (don't match, because Firefox shows
www.)View me ...
Solution
It's therefore advisable to remove the
www.part on the Bitwarden side before comparison.This PR allows the use of this system with:
💡 Current stable version at the time of writing: 68.10.0 (68.9.0 on Google Play Store)
➡️ Please note: The logged
uriKeyvalue will now be the one to be used in practice. So, will always return the version withoutwww.from now on.