keepassxc-browser icon indicating copy to clipboard operation
keepassxc-browser copied to clipboard

manual addition of wildcard (*) URLs for username-only detection in site preferences broken on firefox

Open brad2014 opened this issue 2 years ago • 1 comments

Expected Behavior

The login page for https://qbo.intuit.com redirects to a random subdomain host on each visit, for example: https://c19.qbo.intuit.com/qbo19/login. That login page only has a username field, with the password field on the next page.

On Brave (Browser: Chrome/Chromium 100.0.4896.127), in KeepassXC plugin's Site Preferences, I can manually add the URL https://*.qbo.intuit.com/* and enable username-only detection for the entire subdomain. This allows me to use KeePassXC-Browser autofill no matter which subdomain host processes my login.

On Firefox, it should do the same.

Current Behavior

Unfortunately, on Firefox (unlike Chrome), I get a validation error when I click "+ Add" that prevents me from adding the wildcard URL:

Site Preferences Error ## Possible Solution

Unknown.

Steps to Reproduce (for bugs)

  1. Visit https://qbo.intuit.com, and get redirected to the login page.
  2. Try to autofill the username into the username field.
  3. Try to manually add the site preference to enable username-only detection forhttps://*.qbo.intuit.com/* so it works regardless of which host one gets redirected to.
  4. Notice error message on pressing "+ Add" button.

Debug info

KeePassXC - 2.7.1 KeePassXC-Browser - 1.7.12 Operating system: MacIntel Browser: Mozilla Firefox 99.0

brad2014 avatar Apr 19 '22 23:04 brad2014

The field's ValidationState differs: Edge: edge

Firefox: firefox

typeMismatch means Firefox doesn't accept that URL as a valid one, but Chromium-based browsers do. We could probably check the validity against patternMismatch but the field would still show an error in real-time.

varjolintu avatar Apr 20 '22 03:04 varjolintu