Details
- Reviewers
flod dimi issammani - Group Reviewers
credential-management-reviewers Restricted Project - Commits
- rMOZILLACENTRAL7327ed6a329b: Bug 1806351 - Focusing login filter input with Ctrl+F r=credential-management…
rMOZILLACENTRAL41a86e1784a4: Bug 1806351 - Focusing login filter input with Ctrl+F r=credential-management…
rMOZILLACENTRALfc1c7e42caf7: Bug 1806351 - Focusing login filter input with Ctrl+F r=credential-management… - Bugzilla Bug ID
- 1806351
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Lint
Lint Not Applicable - Unit
Tests Not Applicable - Build Status
Buildable 507512 Build 603870: arc lint + arc unit
Event Timeline
Code analysis found 1 defect in the diff 660693:
- 1 defect found by eslint (Mozlint)
You can run this analysis locally with:
- ./mach lint --warnings --outgoing
If you see a problem in this automated review, please report it here.
You can view these defects in the Diff Detail section of Phabricator diff 660693.
1 issue closed compared to the previous diff 660693.
If you see a problem in this automated review, please report it here.
browser/locales/en-US/browser/aboutLogins.ftl | ||
---|---|---|
10 | You need a new ID when making this type of changes The new ID should also be namespaced, e.g. about-logins-login-filter. focusKey is not standard terminology for shortcuts, they're normally called just .key as attributes (and uppercase) about-logins-login-filter = .placeholder = Search Logins .key = F |
browser/locales/en-US/browser/aboutLogins.ftl | ||
---|---|---|
10 | Gotcha, thanks! Is it supposed to be uppercase? I see lowercase here https://searchfox.org/mozilla-central/rev/4d2b1f753871ce514f9dccfc5b1b5e867f499229/browser/locales/en-US/browser/preferences/preferences.ftl#66 or here https://searchfox.org/mozilla-central/rev/4d2b1f753871ce514f9dccfc5b1b5e867f499229/browser/locales/en-US/browser/places.ftl#238 |
browser/locales/en-US/browser/aboutLogins.ftl | ||
---|---|---|
10 | It doesn't work with uppercase, because that key is used to match to the event.key on keydown event. I'll keep it lowercase. |
browser/locales/en-US/browser/aboutLogins.ftl | ||
---|---|---|
3–4 | It will require ~100 locales to retranslate everything. To avoid that you need a migration, which will still duplicate all the strings for new locales until we drop support for ESR 102. So, no, we shouldn't do that, and just fix strings as we go. | |
10 | That seems weird, we use uppercase most of the time |
browser/locales/en-US/browser/aboutLogins.ftl | ||
---|---|---|
10 | I believe the answer is https://searchfox.org/mozilla-central/rev/fb1e6d6e5735dcf12d96fde70351aca305961b53/dom/events/KeyEventHandler.cpp#473 - the XUL key event handling code lowercases both incoming events and the access key to normalize, so it doesn't matter there. Because this is a manual implementation, it would need to manually do the same. |
Code analysis found 1 defect in the diff 678508:
- 1 defect found by eslint (Mozlint)
You can run this analysis locally with:
- ./mach lint --warnings --outgoing
If you see a problem in this automated review, please report it here.
You can view these defects in the Diff Detail section of Phabricator diff 678508.
1 issue closed compared to the previous diff 678508.
If you see a problem in this automated review, please report it here.
browser/components/aboutlogins/tests/browser/browser_loginFilter.js | ||
---|---|---|
15 | the name might be wrong? |
Thank you for the patch, I have a comment about mac.
browser/components/aboutlogins/content/aboutLogins.mjs | ||
---|---|---|
226 | On mac, the default would be command + f and not ctrl + f. You can add event.metaKey to the check as well. This will match the command key on mac only as of Firefox 48 since the windows key is not considered meta key anymore. This will however cause both command + f and ctrl + f to work on mac, which I don't mind. The about:addons page excludes this behaviour by explicitly checking the platform https://searchfox.org/mozilla-central/source/toolkit/mozapps/extensions/content/aboutaddons.js#674-680. |
browser/components/aboutlogins/content/aboutLogins.mjs | ||
---|---|---|
226 | You can use event.getModifierState("Accel") to get this to work correctly cross-platform, fwiw. |
browser/components/aboutlogins/content/aboutLogins.mjs | ||
---|---|---|
226 | Thank you both, that is helpful! |
browser/components/aboutlogins/tests/browser/browser_loginFilter.js | ||
---|---|---|
15 | ups, copy/paste failure 😊 |
2968 issues closed compared to the previous diff 678799.
If you see a problem in this automated review, please report it here.