Bug 1343996: Forbid empty types and urls request filter arrays. r?rpl
MozReview-Commit-ID: IsMwRYVo9t9
--- a/toolkit/components/extensions/schemas/web_request.json
+++ b/toolkit/components/extensions/schemas/web_request.json
@@ -97,23 +97,25 @@
{
"id": "RequestFilter",
"type": "object",
"description": "An object describing filters to apply to webRequest events.",
"properties": {
"urls": {
"type": "array",
"description": "A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.",
- "items": { "type": "string" }
+ "items": { "type": "string" },
+ "minItems": 1
},
"types": {
"type": "array",
"optional": true,
"description": "A list of request types. Requests that cannot match any of the types will be filtered out.",
- "items": { "$ref": "ResourceType" }
+ "items": { "$ref": "ResourceType" },
+ "minItems": 1
},
"tabId": { "type": "integer", "optional": true },
"windowId": { "type": "integer", "optional": true }
}
},
{
"id": "HttpHeaders",
"type": "array",