Skip to content

Commit

Permalink
Set the request's policy container instead
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Feb 4, 2025
1 parent e88eb0a commit 68874af
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -100933,16 +100933,17 @@ location.href = '#foo';</code></pre>

<li>
<p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose <span
data-x="concept-request-url">URL</span> is <var>url</var>.</p>
data-x="concept-request-url">URL</span> is <var>url</var> and whose <span
data-x="concept-request-policy-container">policy container</span> is
<var>sourceSnapshotParams</var>'s <span data-x="source-snapshot-params-policy-container">source
policy container</span>.</p>

<p class="note">This is a synthetic <span data-x="concept-request">request</span> solely for
plumbing into the next step. It will never hit the network.</p>
</li>

<li><p>If the result of <span>should navigation request of type be blocked by Content Security
Policy?</span> given <var>request</var>, <var>cspNavigationType</var>, and
<var>sourceSnapshotParams</var>'s <span data-x="source-snapshot-params-policy-container">source
policy container</span>'s <span data-x="policy-container-csp-list">CSP list</span> is "<code
Policy?</span> given <var>request</var> and <var>cspNavigationType</var> is "<code
data-x="">Blocked</code>", then return. <ref>CSP</ref></p></li>

<li><p>Let <var>newDocument</var> be the result of <span data-x="evaluate a javascript:
Expand Down Expand Up @@ -102607,6 +102608,10 @@ location.href = '#foo';</code></pre>
<dt><span data-x="concept-request-referrer-policy">referrer policy</span></dt>
<dd><var>entry</var>'s <span data-x="she-document-state">document state</span>'s <span
data-x="document-state-request-referrer-policy">request referrer policy</span></dd>

<dt><span data-x="concept-request-policy-container">policy container</span></dt>
<dd><var>sourceSnapshotParams</var>'s <span
data-x="source-snapshot-params-policy-container">source policy container</span></dd>
</dl>
</li>

Expand Down Expand Up @@ -102786,9 +102791,7 @@ location.href = '#foo';</code></pre>
</li>

<li><p>If the result of <span>should navigation request of type be blocked by Content Security
Policy?</span> given <var>request</var>, <var>cspNavigationType</var>, and
<var>sourceSnapshotParams</var>'s <span data-x="source-snapshot-params-policy-container">source
policy container</span>'s <span data-x="policy-container-csp-list">CSP list</span> is "<code
Policy?</span> given <var>request</var> and <var>cspNavigationType</var> is "<code
data-x="">Blocked</code>", then set <var>response</var> to a <span>network error</span> and
<span>break</span>. <ref>CSP</ref></p></li>

Expand Down

0 comments on commit 68874af

Please sign in to comment.