Skip to content

Integrity-Policy integration #11334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2747,6 +2747,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata">parse integrity metadata</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webappsec-subresource-integrity/#the-integrity-attribute">the requirements of the integrity attribute</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webappsec-subresource-integrity/#get-the-strongest-metadata">get the strongest metadata from set</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webappsec-subresource-integrity/#integrity-policy-struct">integrity policy struct</dfn></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love including "struct" in the names.

<li><dfn data-x-href="https://w3c.github.io/webappsec-subresource-integrity/#parse-integrity-policy-headers">parse Integrity-Policy headers</dfn></li>
</ul>
</dd>

Expand Down Expand Up @@ -90607,6 +90609,14 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
<li><p>A <dfn export for="policy container" data-x="policy-container-referrer-policy">referrer
policy</dfn>, which is a <span>referrer policy</span>. It is initially the <span>default referrer
policy</span>.</p></li>

<li><p>An <dfn export for="policy container" data-x="policy-container-integrity-policy">integrity
policy</dfn>, which is an <span data-x="integrity policy struct">integrity policy struct</span>.
</p></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No whitespace between . and <


<li><p>A <dfn export for="policy container"
data-x="policy-container-report-only-integrity-policy">report only integrity policy</dfn>, which
is an <span data-x="integrity policy struct">integrity policy struct</span>.</p></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What values do these have for policy containers not created from "create a policy container from a fetch response"? E.g. the fallback case in "determine navigation params policy container", or the one created in "snapshot source snapshot params" for browser UI-initiated navigations, or the one created in "Loading a document for inline content that doesn't have a DOM", or the initial values for documents and workers?

</ul>

<p class="XXX">Move other policies into the policy container.</p>
Expand Down Expand Up @@ -90683,6 +90693,9 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
`<code>Referrer-Policy</code>` header</span> given <var>response</var>.
<ref>REFERRERPOLICY</ref></p></li>

<li><p><span data-x="parse Integrity-Policy headers">Parse Integrity-Policy headers</span> with
<var>Response</var> and <var>result</var>.</p></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<var>Response</var> and <var>result</var>.</p></li>
<var>vesponse</var> and <var>result</var>.</p></li>


<li><p>Return <var>result</var>.</p></li>
</ol>

Expand Down