Skip to content

Commit 80f6608

Browse files
committed
Delegate srcdoc's CSP list initialization to CSP.
Following up on w3c/webappsec-csp#210, this patch simplifies the integration point between HTML and CSP, delegating the functionality entirely to the latter.
1 parent 4bf5ccd commit 80f6608

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3747,7 +3747,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
37473747
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#grammardef-serialized-policy">Content Security Policy syntax</dfn></li>
37483748
<li><dfn data-x-href="https://w3c.github.io/webappsec-csp/#enforced">enforce the policy</dfn></li>
37493749
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#parse-serialized-policy">parse a serialized Content Security Policy</dfn> algorithm</li>
3750-
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#initialize-global-object-csp">Initialize a global object's CSP list</dfn> algorithm</li>
3750+
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#initialize-worker-csp">Initialize a worker's CSP list</dfn> algorithm</li>
37513751
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#initialize-document-csp">Initialize a Document's CSP list</dfn> algorithm</li>
37523752
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#should-block-inline">Should element's inline behavior be blocked by Content Security Policy?</dfn> algorithm</li>
37533753
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#should-block-navigation-request">Should navigation request of type from source in target be blocked by Content Security Policy?</dfn> algorithm</li>
@@ -28891,9 +28891,7 @@ interface <dfn>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
2889128891
data-x="concept-response-header-list">header list</span> consists of `<code
2889228892
data-x="">Content-Type</code>`/`<code>text/html</code>, <span
2889328893
data-x="concept-response-body">body</span> is the value of the attribute, <span
28894-
data-x="concept-response-csp-list">CSP list</span> is the <span
28895-
data-x="concept-document-csp-list">CSP list</span> of the <code>iframe</code> element's <span>node
28896-
document</span>, <span data-x="concept-response-https-state">HTTPS state</span> is the <span
28894+
data-x="concept-response-https-state">HTTPS state</span> is the <span
2889728895
data-x="concept-document-https-state">HTTPS state</span> of the <code>iframe</code> element's
2889828896
<span>node document</span>.
2889928897

@@ -97482,8 +97480,8 @@ interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
9748297480
<span data-x="parse-referrer-policy-header">parsing the `<code>Referrer-Policy</code>`
9748397481
header</span> of <var>response</var>.</p></li>
9748497482

97485-
<li><p>Execute the <span>Initialize a <code data-x="">global object</code>'s CSP list</span>
97486-
algorithm on <var>worker global scope</var> and <var>response</var>. <ref spec="CSP"></p></li>
97483+
<li><p>Execute the <span>Initialize a worker's CSP list</span> algorithm on <var>worker global
97484+
scope</var> and <var>response</var>. <ref spec="CSP"></p></li>
9748797485

9748897486
<li><p>Asynchronously complete the <span data-x="fetching-scripts-perform-fetch">perform the
9748997487
fetch</span> steps with <var>response</var>.</p></li>

0 commit comments

Comments
 (0)