Bug 1435191 - Enforce limit in additional_backgrounds field. r=jaws
MozReview-Commit-ID: E5QuWn48kdm
--- a/toolkit/components/extensions/schemas/theme.json
+++ b/toolkit/components/extensions/schemas/theme.json
@@ -47,16 +47,17 @@
"properties": {
"images": {
"type": "object",
"optional": true,
"properties": {
"additional_backgrounds": {
"type": "array",
"items": { "$ref": "ImageDataOrExtensionURL" },
+ "maxItems": 15,
"optional": true
},
"headerURL": {
"$ref": "ImageDataOrExtensionURL",
"optional": true
},
"theme_frame": {
"$ref": "ImageDataOrExtensionURL",
@@ -545,24 +546,26 @@
"type": "string",
"enum": [
"bottom", "center", "left", "right", "top",
"center bottom", "center center", "center top",
"left bottom", "left center", "left top",
"right bottom", "right center", "right top"
]
},
+ "maxItems": 15,
"optional": true
},
"additional_backgrounds_tiling": {
"type": "array",
"items": {
"type": "string",
"enum": ["no-repeat", "repeat", "repeat-x", "repeat-y"]
},
+ "maxItems": 15,
"optional": true
}
},
"additionalProperties": { "$ref": "UnrecognizedProperty" }
}
},
"additionalProperties": { "$ref": "UnrecognizedProperty" }
},