PermissionsPolicyViolationReportBody Class

The body of the reports of type permissions-policy-violation and potential-permissions-policy-violation (https://w3c.github.io/webappsec-permissions-policy/#reporting): a document used a feature that its permissions policy (or its report-only policy) disables, or the allow attribute of one of its iframes delegates such a feature.

public sealed class PermissionsPolicyViolationReportBody : ReportBody
Inheritance
ReportBody PermissionsPolicyViolationReportBody

Properties

NameDescription
AllowAttributeGets the value of the allow attribute of the iframe of a potential violation, or null.
ColumnNumberGets the column of the script that used the feature, or null.
DispositionGets enforce when the policy was enforced, or report for a violation of the report-only policy.
FeatureIdGets the token of the policy-controlled feature whose policy is violated (e.g. sync-xhr).
LineNumberGets the line of the script that used the feature, or null.
SourceFileGets the URL of the script that used the feature, or null.
SrcAttributeGets the value of the src attribute of the iframe of a potential violation, or null.

AllowAttribute

Report.cs

Gets the value of the allow attribute of the iframe of a potential violation, or null.

public string? AllowAttribute { get; init; }

ColumnNumber

Report.cs

Gets the column of the script that used the feature, or null.

public int? ColumnNumber { get; init; }

Disposition

Report.cs

Gets enforce when the policy was enforced, or report for a violation of the report-only policy.

public string Disposition { get; init; }

FeatureId

Report.cs

Gets the token of the policy-controlled feature whose policy is violated (e.g. sync-xhr).

public string FeatureId { get; init; }

LineNumber

Report.cs

Gets the line of the script that used the feature, or null.

public int? LineNumber { get; init; }

SourceFile

Report.cs

Gets the URL of the script that used the feature, or null.

public string? SourceFile { get; init; }

SrcAttribute

Report.cs

Gets the value of the src attribute of the iframe of a potential violation, or null.

public string? SrcAttribute { get; init; }