Duplicate keys can be registered with browser.commands.update()
Categories
(WebExtensions :: Untriaged, enhancement)
Tracking
(Not tracked)
People
(Reporter: fixmebug, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
browser.commands.update({
name: "_execute_browser_action",
shortcut: "Ctrl+Shift+S”
}).then(() => {
console.log("OK");
}).catch(e => {
console.log(e.message);
});
==> OK
Actual results:
Ctrl+Shift+S is assigned to the Open the Firefox Screenshots UI, but registering with browser.commands.update() does not result in an error. On the other hand, if you try to register Ctrl+Shift+S to an add-on on the shortcut key management page of about: addons, an error will occur.
Expected results:
Shouldn't it return an error like about:addons if you try to register a shortcut key already used by Firefox or other add-ons using browser.commands.update()?
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
I'm going to comment on bug 1654403
Description
•