From 50b7c1be7ecdeecb9ffbe080334ed8890935e649 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 2 Mar 2017 12:51:44 -0800 Subject: [PATCH] Bug 1343996: Forbid empty types and urls request filter arrays. r=rpl MozReview-Commit-ID: IsMwRYVo9t9 --HG-- extra : rebase_source : 53f9ca3b962638fc15259bee2cdf4c968880c3b6 --- toolkit/components/extensions/schemas/web_request.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toolkit/components/extensions/schemas/web_request.json b/toolkit/components/extensions/schemas/web_request.json index 67bef16d1908..e884f8b70b35 100644 --- a/toolkit/components/extensions/schemas/web_request.json +++ b/toolkit/components/extensions/schemas/web_request.json @@ -102,13 +102,15 @@ "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 }