You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Bug 1647825 - Add a schema for the new ping 'xfocsp-error=report'.
* Bug 1654558 Add xfocsp-error-report schema
Closes#570
This pulls in the commit from that PR and duplicates it in a new namespace.
We will be rerouting these pings in the pipeline so that they can have
stricter access controls.
There is a test case added here so that CI will fail if these two schemas
get out of sync.
Co-authored-by: Tim Huang <tihuang@mozilla.com>
"description": "Schema for xfocsp-error-report pings as documented at https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/xfocsp-error-report-ping.html",
4
+
"properties": {
5
+
"payload": {
6
+
"maxProperties": 7,
7
+
"minProperties": 7,
8
+
"properties": {
9
+
"csp_header": {
10
+
"description": "The CSP: frame-ancestors value in the response HTTP header.",
11
+
"type": "string"
12
+
},
13
+
"error_type": {
14
+
"description": "The type of what error triggers this ping.",
15
+
"enum": [
16
+
"xfo",
17
+
"csp"
18
+
],
19
+
"type": "string"
20
+
},
21
+
"frame_hostname": {
22
+
"description": "The hostname of the frame which triggers the error.",
23
+
"type": "string"
24
+
},
25
+
"frame_uri": {
26
+
"description": "The uri of the frame which triggers the error. This excludes the query strings.",
27
+
"type": "string"
28
+
},
29
+
"top_hostname": {
30
+
"description": "The hostname of the top-level page which loads the frame.",
31
+
"type": "string"
32
+
},
33
+
"top_uri": {
34
+
"description": "The uri of the top-level page which loads the frame. This excludes the query strings.",
35
+
"type": "string"
36
+
},
37
+
"xfo_header": {
38
+
"description": "The X-Frame-Options value in the response HTTP header.",
"description": "Schema for xfocsp-error-report pings as documented at https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/xfocsp-error-report-ping.html",
4
+
"properties": {
5
+
"payload": {
6
+
"maxProperties": 7,
7
+
"minProperties": 7,
8
+
"properties": {
9
+
"csp_header": {
10
+
"description": "The CSP: frame-ancestors value in the response HTTP header.",
11
+
"type": "string"
12
+
},
13
+
"error_type": {
14
+
"description": "The type of what error triggers this ping.",
15
+
"enum": [
16
+
"xfo",
17
+
"csp"
18
+
],
19
+
"type": "string"
20
+
},
21
+
"frame_hostname": {
22
+
"description": "The hostname of the frame which triggers the error.",
23
+
"type": "string"
24
+
},
25
+
"frame_uri": {
26
+
"description": "The uri of the frame which triggers the error. This excludes the query strings.",
27
+
"type": "string"
28
+
},
29
+
"top_hostname": {
30
+
"description": "The hostname of the top-level page which loads the frame.",
31
+
"type": "string"
32
+
},
33
+
"top_uri": {
34
+
"description": "The uri of the top-level page which loads the frame. This excludes the query strings.",
35
+
"type": "string"
36
+
},
37
+
"xfo_header": {
38
+
"description": "The X-Frame-Options value in the response HTTP header.",
"description": "Schema for xfocsp-error-report pings as documented at https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/xfocsp-error-report-ping.html",
6
+
"properties": {
7
+
"payload": {
8
+
"type": "object",
9
+
"minProperties": 7,
10
+
"maxProperties": 7,
11
+
"properties": {
12
+
"error_type": {
13
+
"description": "The type of what error triggers this ping.",
14
+
"type": "string",
15
+
"enum": ["xfo", "csp"]
16
+
},
17
+
"xfo_header": {
18
+
"description": "The X-Frame-Options value in the response HTTP header.",
19
+
"type": "string"
20
+
},
21
+
"csp_header": {
22
+
"description": "The CSP: frame-ancestors value in the response HTTP header.",
23
+
"type": "string"
24
+
},
25
+
"frame_hostname": {
26
+
"description": "The hostname of the frame which triggers the error.",
27
+
"type": "string"
28
+
},
29
+
"top_hostname": {
30
+
"description": "The hostname of the top-level page which loads the frame.",
31
+
"type": "string"
32
+
},
33
+
"frame_uri": {
34
+
"description": "The uri of the frame which triggers the error. This excludes the query strings.",
35
+
"type": "string"
36
+
},
37
+
"top_uri": {
38
+
"description": "The uri of the top-level page which loads the frame. This excludes the query strings.",
"description": "Schema for xfocsp-error-report pings as documented at https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/xfocsp-error-report-ping.html",
6
+
"properties": {
7
+
"payload": {
8
+
"type": "object",
9
+
"minProperties": 7,
10
+
"maxProperties": 7,
11
+
"properties": {
12
+
"error_type": {
13
+
"description": "The type of what error triggers this ping.",
14
+
"type": "string",
15
+
"enum": ["xfo", "csp"]
16
+
},
17
+
"xfo_header": {
18
+
"description": "The X-Frame-Options value in the response HTTP header.",
19
+
"type": "string"
20
+
},
21
+
"csp_header": {
22
+
"description": "The CSP: frame-ancestors value in the response HTTP header.",
23
+
"type": "string"
24
+
},
25
+
"frame_hostname": {
26
+
"description": "The hostname of the frame which triggers the error.",
27
+
"type": "string"
28
+
},
29
+
"top_hostname": {
30
+
"description": "The hostname of the top-level page which loads the frame.",
31
+
"type": "string"
32
+
},
33
+
"frame_uri": {
34
+
"description": "The uri of the frame which triggers the error. This excludes the query strings.",
35
+
"type": "string"
36
+
},
37
+
"top_uri": {
38
+
"description": "The uri of the top-level page which loads the frame. This excludes the query strings.",
0 commit comments