Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"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",
"properties": {
"payload": {
"maxProperties": 7,
"minProperties": 7,
"properties": {
"csp_header": {
"description": "The CSP: frame-ancestors value in the response HTTP header.",
"type": "string"
},
"error_type": {
"description": "The type of what error triggers this ping.",
"enum": [
"xfo",
"csp"
],
"type": "string"
},
"frame_hostname": {
"description": "The hostname of the frame which triggers the error.",
"type": "string"
},
"frame_uri": {
"description": "The uri of the frame which triggers the error. This excludes the query strings.",
"type": "string"
},
"top_hostname": {
"description": "The hostname of the top-level page which loads the frame.",
"type": "string"
},
"top_uri": {
"description": "The uri of the top-level page which loads the frame. This excludes the query strings.",
"type": "string"
},
"xfo_header": {
"description": "The X-Frame-Options value in the response HTTP header.",
"type": "string"
}
},
"required": [
"error_type",
"xfo_header",
"csp_header",
"frame_hostname",
"top_hostname",
"frame_uri",
"top_uri"
],
"type": "object"
}
},
"required": [
"payload"
],
"title": "xfocsp-error-report",
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "xfocsp-error-report",
"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",
"properties": {
"payload": {
"type": "object",
"minProperties": 7,
"maxProperties": 7,
"properties": {
"error_type": {
"description": "The type of what error triggers this ping.",
"type": "string",
"enum": ["xfo", "csp"]
},
"xfo_header": {
"description": "The X-Frame-Options value in the response HTTP header.",
"type": "string"
},
"csp_header": {
"description": "The CSP: frame-ancestors value in the response HTTP header.",
"type": "string"
},
"frame_hostname": {
"description": "The hostname of the frame which triggers the error.",
"type": "string"
},
"top_hostname": {
"description": "The hostname of the top-level page which loads the frame.",
"type": "string"
},
"frame_uri": {
"description": "The uri of the frame which triggers the error. This excludes the query strings.",
"type": "string"
},
"top_uri": {
"description": "The uri of the top-level page which loads the frame. This excludes the query strings.",
"type": "string"
}
},
"required": [
"error_type",
"xfo_header",
"csp_header",
"frame_hostname",
"top_hostname",
"frame_uri",
"top_uri"
]
}
},
"required": [
"payload"
]
}
26 changes: 26 additions & 0 deletions validation/telemetry/xfocsp-error-report.4.sample.pass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"type": "xfocsp-error-report",
"id": "0cb9115c-471b-164b-9630-9fb75567eca8",
"creationDate": "2020-07-10T11:42:30.579Z",
"version": 4,
"application": {
"architecture": "x86-64",
"buildId": "20200710134107",
"name": "Firefox",
"version": "80.0a1",
"displayVersion": "80.0a1",
"vendor": "Mozilla",
"platformVersion": "80.0a1",
"xpcomAbi": "x86_64-gcc3",
"channel": "default"
},
"payload": {
"error_type": "xfo",
"xfo_header": "deny",
"csp_header": "",
"frame_hostname": "example.com",
"top_hostname": "example.com",
"frame_uri": "http://example.com/browser/dom/security/test/general/file_framing_error_pages.sjs",
"top_uri": "http//example.com/browser/dom/security/test/general/file_framing_error_pages_xfo.html"
}
}