Skip to content

Commit

Permalink
Add PermissionsPolicyViolationReportBody toJSON operation (#472)
Browse files Browse the repository at this point in the history
SHA: 616508d
Reason: push, by clelland

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
antosart and github-actions[bot] committed Jun 26, 2024
1 parent 4c78d8c commit 94ce125
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
<meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator">
<link href="https://www.w3.org/TR/permissions-policy/" rel="canonical">
<meta content="69abf4c955599247c2aea73991f87f0ddb096c1c" name="document-revision">
<meta content="616508d5f6d6770d8eea71d8dc38bffd5ea37379" name="document-revision">
<style>
.unstable::before {
content: "This section is not stable.";
Expand Down Expand Up @@ -1741,6 +1741,7 @@ <h2 class="heading settled" data-level="8" id="reporting"><span class="secno">8.
<p><a data-link-type="dfn" href="#permissions-policy-violation-reports" id="ref-for-permissions-policy-violation-reports①">Permissions policy violation reports</a> are <a data-link-type="dfn" href="https://w3c.github.io/reporting/#visible-to-reportingobservers" id="ref-for-visible-to-reportingobservers">visible to <code>ReportingObserver</code>s</a>. </p>
<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#Exposed" id="ref-for-Exposed①"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="permissionspolicyviolationreportbody"><code><c- g>PermissionsPolicyViolationReportBody</c-></code></dfn> : <a data-link-type="idl-name" href="https://w3c.github.io/reporting/#reportbody" id="ref-for-reportbody"><c- n>ReportBody</c-></a> {
[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#Default" id="ref-for-Default"><c- g>Default</c-></a>] <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-object" id="ref-for-idl-object"><c- b>object</c-></a> <dfn class="idl-code" data-dfn-for="PermissionsPolicyViolationReportBody" data-dfn-type="method" data-export data-lt="toJSON()" id="dom-permissionspolicyviolationreportbody-tojson"><code><c- g>toJSON</c-></code><a class="self-link" href="#dom-permissionspolicyviolationreportbody-tojson"></a></dfn>();
<c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-DOMString" id="ref-for-idl-DOMString⑥"><c- b>DOMString</c-></a> <dfn class="idl-code" data-dfn-for="PermissionsPolicyViolationReportBody" data-dfn-type="attribute" data-export data-readonly data-type="DOMString" id="dom-permissionspolicyviolationreportbody-featureid"><code><c- g>featureId</c-></code><a class="self-link" href="#dom-permissionspolicyviolationreportbody-featureid"></a></dfn>;
<c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-DOMString" id="ref-for-idl-DOMString⑦"><c- b>DOMString</c-></a>? <dfn class="idl-code" data-dfn-for="PermissionsPolicyViolationReportBody" data-dfn-type="attribute" data-export data-readonly data-type="DOMString?" id="dom-permissionspolicyviolationreportbody-sourcefile"><code><c- g>sourceFile</c-></code><a class="self-link" href="#dom-permissionspolicyviolationreportbody-sourcefile"></a></dfn>;
<c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-long" id="ref-for-idl-long"><c- b>long</c-></a>? <dfn class="idl-code" data-dfn-for="PermissionsPolicyViolationReportBody" data-dfn-type="attribute" data-export data-readonly data-type="long?" id="dom-permissionspolicyviolationreportbody-linenumber"><code><c- g>lineNumber</c-></code><a class="self-link" href="#dom-permissionspolicyviolationreportbody-linenumber"></a></dfn>;
Expand Down Expand Up @@ -2556,6 +2557,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
<li><a href="#src-origin">src-origin</a><span>, in § 4.7</span>
<li><a href="#supported-features">supported features</a><span>, in § 4.1</span>
<li><a href="#the-special-value">The special value *</a><span>, in § 4.7</span>
<li><a href="#dom-permissionspolicyviolationreportbody-tojson">toJSON()</a><span>, in § 8</span>
<li><a href="#violate">violate</a><span>, in § 8</span>
<li><a href="#violate">violated</a><span>, in § 8</span>
<li><a href="#violate">violation</a><span>, in § 8</span>
Expand Down Expand Up @@ -2670,10 +2672,12 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<a data-link-type="biblio">[WEBIDL]</a> defines the following terms:
<ul>
<li><span class="dfn-paneled" id="8855a9aa">DOMString</span>
<li><span class="dfn-paneled" id="f4531911">Default</span>
<li><span class="dfn-paneled" id="889e932f">Exposed</span>
<li><span class="dfn-paneled" id="a5c91173">SameObject</span>
<li><span class="dfn-paneled" id="5372cca8">boolean</span>
<li><span class="dfn-paneled" id="f8de33a3">long</span>
<li><span class="dfn-paneled" id="efd1ec5d">object</span>
<li><span class="dfn-paneled" id="9cce47fd">sequence</span>
</ul>
</ul>
Expand Down Expand Up @@ -2731,6 +2735,7 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I

[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#Exposed"><c- g>Exposed</c-></a>=<c- n>Window</c->]
<c- b>interface</c-> <a href="#permissionspolicyviolationreportbody"><code><c- g>PermissionsPolicyViolationReportBody</c-></code></a> : <a data-link-type="idl-name" href="https://w3c.github.io/reporting/#reportbody"><c- n>ReportBody</c-></a> {
[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#Default"><c- g>Default</c-></a>] <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-object"><c- b>object</c-></a> <a href="#dom-permissionspolicyviolationreportbody-tojson"><code><c- g>toJSON</c-></code></a>();
<c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-DOMString"><c- b>DOMString</c-></a> <a data-readonly data-type="DOMString" href="#dom-permissionspolicyviolationreportbody-featureid"><code><c- g>featureId</c-></code></a>;
<c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-DOMString"><c- b>DOMString</c-></a>? <a data-readonly data-type="DOMString?" href="#dom-permissionspolicyviolationreportbody-sourcefile"><code><c- g>sourceFile</c-></code></a>;
<c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://webidl.spec.whatwg.org/#idl-long"><c- b>long</c-></a>? <a data-readonly data-type="long?" href="#dom-permissionspolicyviolationreportbody-linenumber"><code><c- g>lineNumber</c-></code></a>;
Expand Down Expand Up @@ -3156,10 +3161,12 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content
window.dfnpanelData['959ad97b'] = {"dfnID": "959ad97b", "url": "https://url.spec.whatwg.org/#concept-url-origin", "dfnText": "origin", "refSections": [{"refs": [{"id": "ref-for-concept-url-origin"}, {"id": "ref-for-concept-url-origin\u2460"}, {"id": "ref-for-concept-url-origin\u2461"}], "title": "4.7. Allowlists"}, {"refs": [{"id": "ref-for-concept-url-origin\u2462"}, {"id": "ref-for-concept-url-origin\u2463"}], "title": "7.2. The permissionsPolicy object"}, {"refs": [{"id": "ref-for-concept-url-origin\u2464"}], "title": "9.1. Process response policy"}, {"refs": [{"id": "ref-for-concept-url-origin\u2465"}], "title": "9.2. Construct policy from dictionary and origin"}, {"refs": [{"id": "ref-for-concept-url-origin\u2466"}, {"id": "ref-for-concept-url-origin\u2467"}, {"id": "ref-for-concept-url-origin\u2468"}], "title": "9.3. Parse policy directive"}, {"refs": [{"id": "ref-for-concept-url-origin\u2460\u24ea"}], "title": "9.5. Create a Permissions Policy for a navigable"}, {"refs": [{"id": "ref-for-concept-url-origin\u2460\u2460"}], "title": "9.6. Create a Permissions Policy for a navigable from response"}, {"refs": [{"id": "ref-for-concept-url-origin\u2460\u2461"}], "title": "9.8. Get feature value for origin"}, {"refs": [{"id": "ref-for-concept-url-origin\u2460\u2462"}, {"id": "ref-for-concept-url-origin\u2460\u2463"}], "title": "9.9. Check permissions policy"}, {"refs": [{"id": "ref-for-concept-url-origin\u2460\u2464"}], "title": "9.10. Is feature enabled in document for origin?"}], "external": true};
window.dfnpanelData['ca3ca4ae'] = {"dfnID": "ca3ca4ae", "url": "https://url.spec.whatwg.org/#concept-url-parser", "dfnText": "url parser", "refSections": [{"refs": [{"id": "ref-for-concept-url-parser"}], "title": "4.7. Allowlists"}, {"refs": [{"id": "ref-for-concept-url-parser\u2460"}], "title": "9.3. Parse policy directive"}], "external": true};
window.dfnpanelData['8855a9aa'] = {"dfnID": "8855a9aa", "url": "https://webidl.spec.whatwg.org/#idl-DOMString", "dfnText": "DOMString", "refSections": [{"refs": [{"id": "ref-for-idl-DOMString"}, {"id": "ref-for-idl-DOMString\u2460"}, {"id": "ref-for-idl-DOMString\u2461"}, {"id": "ref-for-idl-DOMString\u2462"}, {"id": "ref-for-idl-DOMString\u2463"}, {"id": "ref-for-idl-DOMString\u2464"}], "title": "7.2. The permissionsPolicy object"}, {"refs": [{"id": "ref-for-idl-DOMString\u2465"}, {"id": "ref-for-idl-DOMString\u2466"}, {"id": "ref-for-idl-DOMString\u2467"}], "title": "8. Reporting"}], "external": true};
window.dfnpanelData['f4531911'] = {"dfnID": "f4531911", "url": "https://webidl.spec.whatwg.org/#Default", "dfnText": "Default", "refSections": [{"refs": [{"id": "ref-for-Default"}], "title": "8. Reporting"}], "external": true};
window.dfnpanelData['889e932f'] = {"dfnID": "889e932f", "url": "https://webidl.spec.whatwg.org/#Exposed", "dfnText": "Exposed", "refSections": [{"refs": [{"id": "ref-for-Exposed"}], "title": "7.2. The permissionsPolicy object"}, {"refs": [{"id": "ref-for-Exposed\u2460"}], "title": "8. Reporting"}], "external": true};
window.dfnpanelData['a5c91173'] = {"dfnID": "a5c91173", "url": "https://webidl.spec.whatwg.org/#SameObject", "dfnText": "SameObject", "refSections": [{"refs": [{"id": "ref-for-SameObject"}, {"id": "ref-for-SameObject\u2460"}], "title": "7.2. The permissionsPolicy object"}], "external": true};
window.dfnpanelData['5372cca8'] = {"dfnID": "5372cca8", "url": "https://webidl.spec.whatwg.org/#idl-boolean", "dfnText": "boolean", "refSections": [{"refs": [{"id": "ref-for-idl-boolean"}], "title": "7.2. The permissionsPolicy object"}], "external": true};
window.dfnpanelData['f8de33a3'] = {"dfnID": "f8de33a3", "url": "https://webidl.spec.whatwg.org/#idl-long", "dfnText": "long", "refSections": [{"refs": [{"id": "ref-for-idl-long"}, {"id": "ref-for-idl-long\u2460"}], "title": "8. Reporting"}], "external": true};
window.dfnpanelData['efd1ec5d'] = {"dfnID": "efd1ec5d", "url": "https://webidl.spec.whatwg.org/#idl-object", "dfnText": "object", "refSections": [{"refs": [{"id": "ref-for-idl-object"}], "title": "8. Reporting"}], "external": true};
window.dfnpanelData['9cce47fd'] = {"dfnID": "9cce47fd", "url": "https://webidl.spec.whatwg.org/#idl-sequence", "dfnText": "sequence", "refSections": [{"refs": [{"id": "ref-for-idl-sequence"}, {"id": "ref-for-idl-sequence\u2460"}, {"id": "ref-for-idl-sequence\u2461"}], "title": "7.2. The permissionsPolicy object"}], "external": true};
window.dfnpanelData['policy-controlled-feature'] = {"dfnID": "policy-controlled-feature", "url": "#policy-controlled-feature", "dfnText": "policy-controlled feature", "refSections": [{"refs": [{"id": "ref-for-policy-controlled-feature"}, {"id": "ref-for-policy-controlled-feature\u2460"}, {"id": "ref-for-policy-controlled-feature\u2461"}, {"id": "ref-for-policy-controlled-feature\u2462"}, {"id": "ref-for-policy-controlled-feature\u2463"}, {"id": "ref-for-policy-controlled-feature\u2464"}], "title": "4.1. Policy-controlled Features"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2465"}, {"id": "ref-for-policy-controlled-feature\u2466"}, {"id": "ref-for-policy-controlled-feature\u2467"}], "title": "4.2. Policies"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2468"}], "title": "4.3. Inherited policies"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u24ea"}], "title": "4.6. Policy directives"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2460"}, {"id": "ref-for-policy-controlled-feature\u2460\u2461"}], "title": "4.8. Default Allowlists"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2462"}], "title": "5.2. Structured header serialization"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2463"}], "title": "6.2. The allow attribute of the\n iframe element"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2464"}], "title": "6.3. Additional attributes to support legacy\n features"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2465"}], "title": "8. Reporting"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2466"}, {"id": "ref-for-policy-controlled-feature\u2460\u2467"}], "title": "9.2. Construct policy from dictionary and origin"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2460\u2468"}, {"id": "ref-for-policy-controlled-feature\u2461\u24ea"}], "title": "9.3. Parse policy directive"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2460"}], "title": "9.4. Process permissions policy attributes"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2461"}], "title": "9.7. Define an inherited policy for feature in container at origin"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2462"}], "title": "9.8. Get feature value for origin"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2463"}], "title": "9.9. Check permissions policy"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2464"}], "title": "9.10. Is feature enabled in document for origin?"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2465"}], "title": "9.11. Get the reporting endpoint for a feature"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2466"}], "title": "9.12. Generate report for violation of permissions policy on settings"}, {"refs": [{"id": "ref-for-policy-controlled-feature\u2461\u2467"}], "title": "9.13. Should request be allowed to use feature?"}], "external": false};
window.dfnpanelData['supported-features'] = {"dfnID": "supported-features", "url": "#supported-features", "dfnText": "supported features", "refSections": [{"refs": [{"id": "ref-for-supported-features"}], "title": "4.2. Policies"}, {"refs": [{"id": "ref-for-supported-features\u2460"}], "title": "4.3. Inherited policies"}, {"refs": [{"id": "ref-for-supported-features\u2461"}], "title": "5.2. Structured header serialization"}, {"refs": [{"id": "ref-for-supported-features\u2462"}, {"id": "ref-for-supported-features\u2463"}, {"id": "ref-for-supported-features\u2464"}], "title": "7.2. The permissionsPolicy object"}, {"refs": [{"id": "ref-for-supported-features\u2465"}], "title": "9.5. Create a Permissions Policy for a navigable"}], "external": false};
Expand Down

0 comments on commit 94ce125

Please sign in to comment.