Bug 1296900 - Hide commands API if manifest key is missing r=kmag

MozReview-Commit-ID: 7vld6MgSlqG

--HG--
extra : rebase_source : 6563d74c854ad4b9640557b15d31073d6fd2168a
This commit is contained in:
Rob Wu 2016-08-20 23:01:43 -07:00
parent e081e458f4
commit fbdafd9474
2 changed files with 1 additions and 4 deletions

View File

@ -82,6 +82,7 @@
{
"namespace": "commands",
"description": "Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the xtension.",
"permissions": ["manifest:commands"],
"types": [
{
"id": "Command",

View File

@ -16,10 +16,6 @@ let expectedContentApisTargetSpecific = [
];
let expectedBackgroundApisTargetSpecific = [
// TODO(robwu): commands API should be hidden by default, and only be visible
// if the commands manifest attribute is set.
"commands.getAll",
"commands.onCommand",
"tabs.MutedInfoReason",
"tabs.TAB_ID_NONE",
"tabs.TabStatus",