keepassxc-browser
keepassxc-browser copied to clipboard
manual addition of wildcard (*) URLs for username-only detection in site preferences broken on firefox
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:

Unknown.
Steps to Reproduce (for bugs)
- Visit https://qbo.intuit.com, and get redirected to the login page.
- Try to autofill the username into the username field.
- Try to manually add the site preference to enable username-only detection for
https://*.qbo.intuit.com/*
so it works regardless of which host one gets redirected to. - 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
The field's ValidationState
differs:
Edge:
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.