report-to
Sending reports about browser or tab (where tab means one of the browser processes) crashes with Reporting API using the Report-To
header (and only the Report-To
header, no other header required), asynchronously.
Report-To
response header:Report-To: {"group":"default","max_age":1800,"endpoints":[{"url":"https://thea.has.report/report.php"}],"include_subdomains":true}
group
: the name of the group, can be used in a CSP header in the report-to
directive, for examplemax_age
: how long the browser should use the endpoint and report errors to itendpoints
: reporting endpoint configuration, can specify multiple endpoints but reports will be sent to just one of them
url
: where to send reports to, must be https://
, otherwise the endpoint will be ignoredYou can simulate a crash by copying and pasting the following link into this tab's address bar: chrome://crash/ (in Chrome) – it's not clickable for a good reason 😈
max_age
seconds after receiving the Report-To
header, reload the page first to make sure it does (you'll want to use bigger max_age
in your real header)reason
, e.g. oom
(Out-of-Memory, try with chrome://memory-exhaust/), unresponsive
(killed due to being unresponsive)Reporting-Endpoints
instead of Report-To
) and moving out concrete reports into the following separate Draft Community Group Reports:
Crash Reporting,
Deprecation Reporting,
Intervention Reporting