diff --git a/http/headers/x-xss-protection.json b/http/headers/x-xss-protection.json index 34ae3e84ddac6e..6dcfc9df61728b 100644 --- a/http/headers/x-xss-protection.json +++ b/http/headers/x-xss-protection.json @@ -41,8 +41,7 @@ "version_added": true }, "samsunginternet_android": { - "version_added": true, - "version_removed": false + "version_added": true }, "webview_android": { "version_added": false diff --git a/schemas/compat-data-schema.md b/schemas/compat-data-schema.md index 24561de0c8b940..3c793e8353f211 100644 --- a/schemas/compat-data-schema.md +++ b/schemas/compat-data-schema.md @@ -217,14 +217,14 @@ entirely unknown. Examples: #### `version_removed` -Contains a string with the version number the sub-feature was -removed in. It may also be a Boolean value of (`true` or `false`), or the -`null` value. +Contains a string with the version number the sub-feature was removed in. +It may also be `true`, meaning that it is unknown in which version support +was removed. Default values: - If `version_added` is set to `true`, `false`, or a string, `version_removed` defaults to `false`. -- if `version_added` is set to `null`, the default value of `version_removed` is also `null`. +- If `version_added` is set to `null`, the default value of `version_removed` is also `null`. Examples: @@ -237,12 +237,12 @@ Examples: } ``` -- Not removed (default if `version_added` is not `null`): +- Removed in some version after 3.5: ```json { "version_added": "3.5", - "version_removed": false + "version_removed": true } ``` diff --git a/schemas/compat-data.schema.json b/schemas/compat-data.schema.json index dc1895c7725cdc..c57184963ba8ee 100644 --- a/schemas/compat-data.schema.json +++ b/schemas/compat-data.schema.json @@ -43,8 +43,20 @@ "type": "boolean", "description": "A boolean value indicating whether or not the implementation of the sub-feature deviates from the specification in a way that may cause compatibility problems. It defaults to false (no interoperability problems expected). If set to true, it is recommended that you add a note explaining how it diverges from the standard (such as that it implements an old version of the standard, for example)." }, - "version_added": { "$ref": "#/definitions/version_value" }, - "version_removed": { "$ref": "#/definitions/version_value" }, + "version_added": { + "description": "A string (indicating which browser version added this feature), the value true (indicating support added in an unknown version), the value false (indicating the feature is not supported), or the value null (indicating support is unknown).", + "allOf": [ + { "type": ["string", "boolean", "null"] }, + { "not": { "enum": ["true", "false", "null"] } } + ] + }, + "version_removed": { + "description": "A string, indicating which browser version removed this feature, or the value true, indicating that the feature was removed in an unknown version.", + "allOf": [ + { "type": ["string", "boolean"] }, + { "not": { "enum": ["true", false] } } + ] + }, "notes": { "description": "A string or array of strings containing additional information.", "anyOf": [ @@ -64,7 +76,7 @@ "required": ["version_added"], "anyOf": [ { - "not": {"required": ["prefix","alternative_name"]} + "not": {"required": ["prefix", "alternative_name"]} }, { "oneOf": [ @@ -258,13 +270,6 @@ "^(?!__compat)[a-zA-Z_0-9-$@]*$" : { "$ref": "#/definitions/webextensions_identifier" } }, "additionalProperties": false - }, - - "version_value": { - "allOf": [ - { "type": ["string", "boolean", "null"] }, - { "not": { "enum": ["true", "false", "null"] } } - ] } },