Tests ReportingApiReportAdded and ReportingApiReportUpdated events.
Report added:
{
body : {
blockedURL : inline
disposition : report
documentURL : <string>
effectiveDirective : script-src-elem
lineNumber : 9
originalPolicy : script-src 'none'; object-src 'none'; report-to csp
referrer :
sample :
sourceFile : http://localhost:8080/inspector-protocol/network/resources/generate-report.php
statusCode : 200
}
completedAttempts : 0
depth : 0
destination : csp
id : <string>
initiatorUrl : http://localhost:8080/inspector-protocol/network/resources/generate-report.php
status : Queued
timestamp : <number>
type : csp-violation
}
Report updated:
{
body : {
blockedURL : inline
disposition : report
documentURL : <string>
effectiveDirective : script-src-elem
lineNumber : 9
originalPolicy : script-src 'none'; object-src 'none'; report-to csp
referrer :
sample :
sourceFile : http://localhost:8080/inspector-protocol/network/resources/generate-report.php
statusCode : 200
}
completedAttempts : 0
depth : 0
destination : csp
id : <string>
initiatorUrl : http://localhost:8080/inspector-protocol/network/resources/generate-report.php
status : Pending
timestamp : <number>
type : csp-violation
}
Report updated:
{
body : {
blockedURL : inline
disposition : report
documentURL : <string>
effectiveDirective : script-src-elem
lineNumber : 9
originalPolicy : script-src 'none'; object-src 'none'; report-to csp
referrer :
sample :
sourceFile : http://localhost:8080/inspector-protocol/network/resources/generate-report.php
statusCode : 200
}
completedAttempts : 0
depth : 0
destination : csp
id : <string>
initiatorUrl : http://localhost:8080/inspector-protocol/network/resources/generate-report.php
status : Queued
timestamp : <number>
type : csp-violation
}