Skip to content

Integrity-Policy integration #1828

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
14 changes: 10 additions & 4 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1763,8 +1763,9 @@ the empty string,
the time being as other specifications do not require it to be. It is primarily a specification
device to assist defining CSP and Mixed Content. It is not exposed to JavaScript. [[!CSP]] [[!MIX]]

<p>A <a for=/>request</a> has an associated
<dfn export for=request id=concept-request-destination>destination</dfn>, which is
<p>A <dfn export for=request id=concept-request-destination-type>destination type</dfn> is a string,
which can be one of the following values:

the empty string,
"<code>audio</code>",
"<code>audioworklet</code>",
Expand All @@ -1787,7 +1788,11 @@ the empty string,
"<code>video</code>",
"<code>webidentity</code>",
"<code>worker</code>", or
"<code>xslt</code>". Unless stated otherwise it is the empty string.
"<code>xslt</code>".

<p>A <a for=/>request</a> has an associated
<dfn export for=request id=concept-request-destination>destination</dfn>, which is
<a for=request>destination type</a>. Unless stated otherwise it is the empty string.

<p class=note>These are reflected on {{RequestDestination}} except for "<code>serviceworker</code>"
and "<code>webidentity</code>" as fetches with those destinations skip service workers.
Expand Down Expand Up @@ -4533,7 +4538,8 @@ steps:

<li><p>If <a lt="block bad port">should <var>request</var> be blocked due to a bad port</a>,
<a lt="should fetching request be blocked as mixed content?">should fetching <var>request</var> be blocked as mixed content</a>, or
<a lt="should request be blocked by Content Security Policy?">should <var>request</var> be blocked by Content Security Policy</a>
<a lt="should request be blocked by Content Security Policy?">should <var>request</var> be blocked by Content Security Policy</a>, or
<a lt="should request be blocked by Integrity Policy">should <var>request</var> be blocked by Integrity Policy Policy</a>
returns <b>blocked</b>, then set <var>response</var> to a <a>network error</a>.

<li><p>If <var>request</var>'s <a for=request>referrer policy</a> is the empty string, then set
Expand Down