Files
sousa-gecko/devtools/client/netmonitor/test/html_reporting_api-test-page.html
Nicolas Chevobbe 4de5de5f2f Bug 2013043 - [devtools] Show Reporting API requests in Netmonitor. r=devtools-reviewers,bomsy
This is done by checking the channel associatedBrowsingContext in NetworkUtils matchRequest function.
A test is added to make sure Reporting API requests are visible in the Netmonitor
and that we can inspect their payload.

Depends on D283896

Differential Revision: https://phabricator.services.mozilla.com/D284675
2026-03-13 12:26:56 +00:00

23 lines
439 B
HTML

<html>
<head>
<meta charset=utf8>
<script>
"use strict";
// Set up reporting observer
const options = {
types: ['deprecation'],
buffered: true
}
const observer = new ReportingObserver(function(reports) {
console.log("Reporting API reports", reports)
}, options);
observer.observe();
</script>
</head>
<body>
<h1>Reporting API</h1>
</body>
</html>