Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Mar 29, 2022
1 parent f2feb9b commit 4075195
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3988,6 +3988,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#run-document-csp-initialization">Run CSP initialization for a Document</dfn> algorithm</li>
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#run-global-object-csp-initialization">Run CSP initialization for a global object</dfn> algorithm</li>
<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>
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#should-block-navigation-request">Should navigation request of type be blocked by Content Security Policy?</dfn> algorithm</li>
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#should-block-navigation-response">Should navigation response to navigation request of type in target be blocked by Content Security Policy?</dfn> algorithm</li>
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#report-uri"><code data-x="">report-uri</code> directive</dfn></li>
<li>The <dfn data-x="csp-EnsureCSPDoesNotBlockStringCompilation" data-x-href="https://w3c.github.io/webappsec-csp/#can-compile-strings">EnsureCSPDoesNotBlockStringCompilation</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://w3c.github.io/webappsec-csp/#allow-base-for-document">Is base allowed for Document?</dfn> algorithm</li>
Expand Down Expand Up @@ -14334,7 +14336,7 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {

<p class="note">Early-hint `<code data-x="http-link">Link</code>` headers are always processed
before `<code data-x="http-link">Link</code>` headers from the final
<span data-x="concept response">response</span>, followed by <code>link</code> elements. This
<span data-x="concept-response">response</span>, followed by <code>link</code> elements. This
is equivalent to prepending the contents of the early and final
`<code data-x="http-link">Link</code>` headers to the <code>Document</code>'s
<code>head</code> element, in respective order.</p>
Expand All @@ -14359,15 +14361,16 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<span data-x="concept-response">response</span> of that
<span data-x="concept-fetch">fetch</span> and once the <code>document</code> is created we
commit it (make it available in the <span>map of preloaded resources</span> as if it was a
<code>link</code> element). If the <code>document</code> is created first, we commit it as soon
as the <span data-x="concept-response">response</span> becomes available.</p>
<code>link</code> element). If the <code>document</code> is created first, the
<span data-x="concept-response">response</span> is committed as soon as it becomes
available.</p>

<ol>
<li>
<p>Let <var>attribs</var> be
<var>linkObject</var>["<code data-x="">target_attributes</code>"].</p>

<p>Only the "<code data-x="">as</code>", "<code data-x="">crossorigin</code>" and
<p>Only the "<code data-x="">as</code>", "<code data-x="">crossorigin</code>", and
"<code data-x="">integrity</code>" attributes are handled as part of early hint processing.
The other ones, in particular "<code data-x="">media</code>",
"<code data-x="">imagesrcset</code>", "<code data-x="">imagesizes</code>", and
Expand Down Expand Up @@ -14438,35 +14441,32 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<var>response</var>.</p></li>
</ol>

<li><p>Let <var>preloadedResources</var> be <var>document</var>'s
<span>map of preloaded resources</span>.</p></li>

<li><p>Let <var>key</var> be the result of
<span data-x="create a preload key">creating a preload key</span> given
<var>earlyRequest</var>.</p></li>
<li><p>Let <var>preloadedResources</var> be <var>document</var>'s
<span>map of preloaded resources</span>.</p></li>

<li><p>If <var>preloadedResources</var>[<var>key</var>]
<span data-x="map exists">exists</span>, then set
<var>preloadedResources</var>[<var>key</var>]'s
<span data-x="preload response">response</span> to <var>response</var>; otherwise,
<span data-x="map set">set</span> <var>preloadedResources</var>[<var>key</var>] to a new
<span>preload entry</span> whose <span data-x="preload response">response</span> is
<var>response</var>.</p></li>
</ol>
</li>
<li><p>Let <var>key</var> be the result of
<span data-x="create a preload key">creating a preload key</span> given
<var>earlyRequest</var>.</p></li>

<li><p>If <var>earlyResponse</var> is null, then set <var>processResponse</var> to
<var>respond</var>; otherwise call <var>respond</var> with <var>earlyResponse</var>.</p></li>
<li><p>If <var>preloadedResources</var>[<var>key</var>]
<span data-x="map exists">exists</span>, then set
<var>preloadedResources</var>[<var>key</var>]'s
<span data-x="preload response">response</span> to <var>response</var>; otherwise,
<span data-x="map set">set</span> <var>preloadedResources</var>[<var>key</var>] to a new
<span>preload entry</span> whose <span data-x="preload response">response</span> is
<var>response</var>.</p></li>
</ol>
</li>

<li><p>If <var>earlyResponse</var> is null, then set <var>processResponse</var> to
<var>respond</var>; otherwise call <var>respond</var> with <var>earlyResponse</var>.</p></li>

<li><p><span data-x="preload a resource">Preload</span> <var>earlyRequest</var> with the
following steps given <span data-x="concept-response">response</span> <var>res</var>: set
<var>unsafeEndTime</var> to the <span>unsafe shared current time</span> and call
<var>processResponse</var> with <var>res</var>.</p></li>
</ol>
</li>
</ol>

<li><p>Return <var>uncommittedPreloads</var>.</p></li>
</ol>
Expand Down

0 comments on commit 4075195

Please sign in to comment.