From e2754582c72f99742aea07770b51c24ca3349f61 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Tue, 5 Jun 2018 15:50:17 +0200 Subject: [PATCH] fix: Add missing management.setEnabled setEnabled is partially implemented in Firefox: - https://bugzil.la/1282982 - https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/management/setEnabled The management API has many more methods in Chrome, Firefox does not support them: - createAppShortcut - generateAppForLink - getPermissionWarningsById - getPermissionWarningsByManifest - launchApp - setLaunchType - uninstall --- api-metadata.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api-metadata.json b/api-metadata.json index c269a87..11563c2 100644 --- a/api-metadata.json +++ b/api-metadata.json @@ -333,6 +333,10 @@ "minArgs": 0, "maxArgs": 0 }, + "setEnabled": { + "minArgs": 2, + "maxArgs": 2 + }, "uninstallSelf": { "minArgs": 0, "maxArgs": 1