diff --git a/fetch.bs b/fetch.bs index 4b1f0c2ca..8638898f1 100644 --- a/fetch.bs +++ b/fetch.bs @@ -4477,19 +4477,27 @@ steps: <li><p>Let <var>response</var> be null. - <li><p>If <var>request</var>'s <a>local-URLs-only flag</a> is set and <var>request</var>'s - <a for=request>current URL</a> is not <a lt="is local">local</a>, then set <var>response</var> to a - <a>network error</a>. + <li> + <p>If <var>fetchParams</var>'s <a for="fetch params">preloaded response candidate</a> is null: + + <ol> + <li><p>If <var>request</var>'s <a>local-URLs-only flag</a> is set and <var>request</var>'s + <a for=request>current URL</a> is not <a lt="is local">local</a>, then set <var>response</var> to a + <a>network error</a>. + + <li><p>Run <a>report Content Security Policy violations for <var>request</var></a>. - <li><p>Run <a>report Content Security Policy violations for <var>request</var></a>. + <li><p><a>Upgrade <var>request</var> to a potentially trustworthy URL, if appropriate</a>. - <li><p><a>Upgrade <var>request</var> to a potentially trustworthy URL, if appropriate</a>. + <li><p><a>Upgrade a mixed content <var>request</var> to a potentially trustworthy URL, if appropriate</a>. - <li><p><a>Upgrade a mixed content <var>request</var> to a potentially trustworthy URL, if appropriate</a>. + <li><p>If <a lt="block bad port">should <var>request</var> be blocked due to a bad port</a> or + <a lt="should request be blocked by Content Security Policy?">should <var>request</var> be blocked by Content Security Policy</a> + returns <b>blocked</b>, then set <var>response</var> to a <a>network error</a>. + </ol> - <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> + <li><p>If + <a lt="should fetching request be blocked as mixed content?">should fetching <var>request</var> be blocked as mixed content</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