Open Bug 1915127 Opened 1 year ago Updated 1 year ago

"Manage Extension Shortcuts" unable to detect conflicts with built-in shortcuts with control (Ctrl)

Categories

(Toolkit :: Add-ons Manager, defect, P2)

defect

Tracking

()

People

(Reporter: robwu, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [addons-jira])

See https://bugzilla.mozilla.org/show_bug.cgi?id=1911798#c5 for details.

In short, ShortcutUtils.isShortcut fails to detect built-in shortcut conflicts with Ctrl because the extension internals maps extension-defined Ctrl to "accel", and that prevents the implementation from finding a match when another component of Firefox registers a shortcut for control.

To fix this, we should look for both "accel" and "control" when the modifiers contain "control" or "accel" at https://searchfox.org/mozilla-central/rev/490a1df802d8872f996f8ef4093d54e3c854c8f9/toolkit/modules/ShortcutUtils.sys.mjs#287-295

Marking as P2 because the scope is clear and easy to fix: we should adjust the selector to also check for the control modifier in addition to accel modifier.

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [addons-jira]

The severity field is not set for this bug.
:rpl, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lgreco)
Severity: N/A → S3
Flags: needinfo?(lgreco)
You need to log in before you can comment on or make changes to this bug.