Bug 1359855 - Remove assertion for dynamic key registration. r=jdescottes

Per definition of this bug/patch, key shortcuts can't be registered anymore.
It mostly means that add-on definition a key shortcut won't keep their key shortcut working.
This shouldn't be an issue on 57 as I don't think WebExtension addon can set a key shortcut via this DevTools API.

MozReview-Commit-ID: G5c8JzaUWoR

--HG--
extra : rebase_source : d9cda8d4af63af795e8f66d3bee7e442bd78d939
This commit is contained in:
Alexandre Poirot 2017-07-13 15:24:55 +02:00
Родитель 5b084c0081
Коммит dc5fee1ec1
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -26,7 +26,6 @@ function testRegister(aToolbox)
inMenu: true,
isTargetSupported: () => true,
build: function () {},
key: "t"
});
}
@ -45,8 +44,6 @@ function toolRegistered(event, toolId)
ok(panel, "new tool's panel exists in toolbox UI");
for (let win of getAllBrowserWindows()) {
let key = win.document.getElementById("key_" + toolId);
ok(key, "key for new tool added to every browser window");
let menuitem = win.document.getElementById("menuitem_" + toolId);
ok(menuitem, "menu item of new tool added to every browser window");
}
@ -86,8 +83,6 @@ function toolUnregistered(event, toolId)
ok(!panel, "tool's panel was removed from toolbox UI");
for (let win of getAllBrowserWindows()) {
let key = win.document.getElementById("key_" + toolId);
ok(!key, "key removed from every browser window");
let menuitem = win.document.getElementById("menuitem_" + toolId);
ok(!menuitem, "menu item removed from every browser window");
}