From 0f831e2f079fa5ede0ad409c430e510a9deed5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Fri, 5 Feb 2021 13:35:25 +0100 Subject: [PATCH] Require that version_removed is either a string or true Setting it explicitly to null or false is meaningless. --- http/headers/x-xss-protection.json | 3 +-- schemas/compat-data-schema.md | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) 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 } ```