Bug 1467593 - Add strict=false to the schema of some policies. r=mkaply draft
authorFelipe Gomes <felipc@gmail.com>
Fri, 29 Jun 2018 15:54:54 -0300
changeset 812663 2dba2e27e645ecf05752ecb5cf8332d986d9f0ab
parent 812662 1dc1e1a31713396ea20b9b7313a69803fbbb3ca0
push id114625
push userfelipc@gmail.com
push dateFri, 29 Jun 2018 18:56:46 +0000
reviewersmkaply
bugs1467593
milestone63.0a1
Bug 1467593 - Add strict=false to the schema of some policies. r=mkaply This allows mistakes given to URL and origin params to be less severe to the end user. MozReview-Commit-ID: 3HXM6adjCo0
browser/components/enterprisepolicies/schemas/policies-schema.json
--- a/browser/components/enterprisepolicies/schemas/policies-schema.json
+++ b/browser/components/enterprisepolicies/schemas/policies-schema.json
@@ -98,23 +98,25 @@
 
     "Cookies": {
       "description": "Allow or deny websites to set cookies.",
 
       "type": "object",
       "properties": {
         "Allow": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "origin"
           }
         },
 
         "Block": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "origin"
           }
         },
 
         "Default": {
           "type": "boolean"
         },
@@ -322,23 +324,25 @@
 
     "FlashPlugin": {
       "description": "Allow or deny flash plugin usage.",
 
       "type": "object",
       "properties": {
         "Allow": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "origin"
           }
         },
 
         "Block": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "origin"
           }
         },
 
         "Default": {
           "type": "boolean"
         },
@@ -364,31 +368,33 @@
         "URL": {
           "type": "URL"
         },
         "Locked": {
           "type": "boolean"
         },
         "Additional": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "URL"
           }
         }
       },
       "required": ["URL"]
     },
 
     "InstallAddonsPermission": {
       "description": "Allow webites to install add-ons.",
 
       "type": "object",
       "properties": {
         "Allow": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "origin"
           }
         },
         "Default": {
           "type": "boolean"
         }
       }
@@ -425,23 +431,25 @@
 
       "type": "object",
       "properties": {
         "Camera": {
           "type": "object",
           "properties": {
             "Allow": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "Block": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "BlockNewRequests": {
               "type": "boolean"
             },
@@ -452,23 +460,25 @@
           }
         },
 
         "Microphone": {
           "type": "object",
           "properties": {
             "Allow": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "Block": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "BlockNewRequests": {
               "type": "boolean"
             },
@@ -479,23 +489,25 @@
           }
         },
 
         "Location": {
           "type": "object",
           "properties": {
             "Allow": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "Block": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "BlockNewRequests": {
               "type": "boolean"
             },
@@ -506,23 +518,25 @@
           }
         },
 
         "Notifications": {
           "type": "object",
           "properties": {
             "Allow": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "Block": {
               "type": "array",
+              "strict": false,
               "items": {
                 "type": "origin"
               }
             },
 
             "BlockNewRequests": {
               "type": "boolean"
             },
@@ -537,16 +551,17 @@
 
     "PopupBlocking": {
       "description": "Allow or deny popup usage.",
 
       "type": "object",
       "properties": {
         "Allow": {
           "type": "array",
+          "strict": false,
           "items": {
             "type": "origin"
           }
         },
 
         "Default": {
           "type": "boolean"
         },