Bug 1629760 - Port bug 1622917 - Add schema support to determine permissions that do not require prompting. rs=bustage-fix
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 14 Apr 2020 20:23:06 +1200
changeset 38819 c5eb775788e3e0e6d0254b580e5f04fa15324317
parent 38818 5d4c12618d3f4c82b4c3678de117defd2ef0c9c3
child 38820 ddff38db03687e1ae6320732ec0fa3b7542d4aaf
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewersbustage-fix
bugs1629760, 1622917
Bug 1629760 - Port bug 1622917 - Add schema support to determine permissions that do not require prompting. rs=bustage-fix
mail/components/extensions/schemas/menus.json
mail/components/extensions/schemas/tabs.json
--- a/mail/components/extensions/schemas/menus.json
+++ b/mail/components/extensions/schemas/menus.json
@@ -2,25 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
 [
   {
     "namespace": "manifest",
     "types": [
       {
-        "$extend": "Permission",
+        "$extend": "PermissionNoPrompt",
         "choices": [{
           "type": "string",
           "enum": [
             "menus"
           ]
         }]
       }, {
-        "$extend": "OptionalPermission",
+        "$extend": "OptionalPermissionNoPrompt",
         "choices": [{
           "type": "string",
           "enum": [
             "menus.overrideContext"
           ]
         }]
       }
     ]
--- a/mail/components/extensions/schemas/tabs.json
+++ b/mail/components/extensions/schemas/tabs.json
@@ -2,21 +2,29 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
 [
   {
     "namespace": "manifest",
     "types": [
       {
+        "$extend": "OptionalPermissionNoPrompt",
+        "choices": [{
+          "type": "string",
+          "enum": [
+            "activeTab"
+          ]
+        }]
+      },
+      {
         "$extend": "OptionalPermission",
         "choices": [{
           "type": "string",
           "enum": [
-            "activeTab",
             "tabs",
             "tabHide"
           ]
         }]
       }
     ]
   },
   {