Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ff130 csp report to #24047

Merged
merged 3 commits into from
Aug 12, 2024
Merged
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
9 changes: 8 additions & 1 deletion api/CSPViolationReportBody.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
"version_added": "130",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"flags": [
{
"type": "preference",
"name": "dom.reporting.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": "mirror",
"ie": {
Expand Down
9 changes: 8 additions & 1 deletion http/headers/Content-Security-Policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,14 @@
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
"version_added": "130",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"flags": [
{
"type": "preference",
"name": "dom.reporting.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": "mirror",
"ie": {
Expand Down
13 changes: 10 additions & 3 deletions http/headers/Report-To.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
"version_added": "130",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"flags": [
{
"type": "preference",
"name": "dom.reporting.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": "mirror",
"ie": {
Expand All @@ -32,8 +39,8 @@
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
"standard_track": false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been removed from the spec, superseded by Reporting-Endpoints

"deprecated": true
}
}
}
Expand Down
51 changes: 51 additions & 0 deletions http/headers/Reporting-Endpoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"http": {
"headers": {
"Reporting-Endpoints": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/HTTP/Headers/Reporting-Endpoints",
"spec_url": "https://w3c.github.io/reporting/#header-field-registration",
"support": {
"chrome": {
"version_added": "96"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "130",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in https://bugzilla.mozilla.org/show_bug.cgi?id=1860588

Note, isn't clear if headers are behind prefs or not (i.e. no clear signal about this as there is in IDL), but they aren't useful if the associated code gated by this isn't preference, so it makes sense to add the pref.

"flags": [
{
"type": "preference",
"name": "dom.reporting.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": {
"version_added": false
},
"opera_android": {
"version_added": false
},
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}