Skip to content

Commit b74644e

Browse files
committed
Editorial pass
1 parent 04d734b commit b74644e

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

fetch.bs

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6766,8 +6766,8 @@ sources, specifically task sources that can result in running scripts such as th
67666766

67676767
<div algorithm>
67686768
<p>To <dfn>queue a deferred fetch</dfn> given a <a for=/>request</a> <var>request</var>, a
6769-
<a for=fetch>fetch group</a> <var>fetchGroup</var> a null or {{DOMHighResTimeStamp}}
6770-
<var>activateAfter</var>, an <var>onActivatedWithoutTermination</var>, which is an algorithm that
6769+
<a for=fetch>fetch group</a> <var>fetchGroup</var>, a null or {{DOMHighResTimeStamp}}
6770+
<var>activateAfter</var>, and <var>onActivatedWithoutTermination</var>, which is
67716771
takes no arguments:
67726772

67736773
<ol>
@@ -6793,8 +6793,10 @@ takes no arguments:
67936793
<ol>
67946794
<li>
67956795
<p>The user agent should wait until any of the following conditions is met:
6796+
67966797
<ul class=brief>
67976798
<li><p>At least <var>activateAfter</var> milliseconds have passed.
6799+
67986800
<li><p>The user agent has a reason to believe that it is about to lose the opportunity to
67996801
execute scripts, e.g., when the browser is moved to the background, or when
68006802
<var>request</var>'s <a for=request>client</a> is a {{Document}} that had a
@@ -6828,19 +6830,18 @@ takes no arguments:
68286830
<a for=request>header list</a>, increment <var>totalRequestLength</var> by <var>name</var>'s
68296831
<a for="byte sequence">length</a> + <var>value</var>'s <a for="byte sequence">length</a>.
68306832

6831-
<li><p>Increment <var>totalRequestLength</var> by <var>request</var>'s
6832-
<a for=request>body</a>'s <a for=body>length</a>.
6833+
<li><p>Increment <var>totalRequestLength</var> by <var>request</var>'s <a for=request>body</a>'s
6834+
<a for=body>length</a>.
68336835

68346836
<li><p>Return <var>totalRequestLength</var>.
6837+
</ol>
68356838
</div>
68366839

68376840
<div algorithm>
6838-
<p>To <dfn>process deferred fetches</dfn> given a <a>fetch group</a>
6839-
<var>fetchGroup</var>, <a for=list>for each</a> <a for="fetch group">deferred fetch record</a>
6840-
<var>deferredRecord</var> of <var>fetchGroup</var>'s
6841-
<a for="fetch group">deferred fetch records</a> <a>process a deferred fetch</a>
6842-
<var>deferredRecord</var>.
6843-
</ol>
6841+
<p>To <dfn>process deferred fetches</dfn> given a <a>fetch group</a> <var>fetchGroup</var>,
6842+
<a for=list>for each</a> <a for="fetch group">deferred fetch record</a> <var>deferredRecord</var> of
6843+
<var>fetchGroup</var>'s <a for="fetch group">deferred fetch records</a>
6844+
<a>process a deferred fetch</a> <var>deferredRecord</var>.
68446845
</div>
68456846

68466847
<div algorithm>
@@ -6851,8 +6852,8 @@ takes no arguments:
68516852

68526853
<li><p>Set <var>deferredRecord</var>'s <a for="deferred fetch record">done</a> to true.
68536854

6854-
<li><p><a for=/>Fetch</a> <var>deferredRecord</var>'s
6855-
<a for="deferred fetch record">request</a>.
6855+
<li><p><a for=/>Fetch</a> <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>.
6856+
68566857
<li><p>Return true.
68576858
</ol>
68586859
</div>
@@ -6869,16 +6870,16 @@ documents, using permissions policy.
68696870
cross-origin nested documents, each reserving 8 kibibytes.
68706871

68716872
<p>The top-level {{Document}}, and subsequently its nested documents, can control how much of their
6872-
quota is delegates to cross-origin/cross-agent nested documents, by using permissions policy.
6873-
By default, "{{PermissionsPolicy/deferred-fetch-minimal}}" is enabled for any origin, while
6873+
quota is delegates to cross-origin child documents, using permissions policy. By default,
6874+
"{{PermissionsPolicy/deferred-fetch-minimal}}" is enabled for any origin, while
68746875
"{{PermissionsPolicy/deferred-fetch}}" is enabled for the top-level document's origin only.
68756876
By relaxing the "{{PermissionsPolicy/deferred-fetch}}" policy for particular origins and nested
68766877
documents, the top-level document can allocate 64 kibibytes to those nested documents. Similarly, by
68776878
restricting the "{{PermissionsPolicy/deferred-fetch-minimal}}" policy for a particular origin or
6878-
nested document, the document can prevent the iframe from reserving the 8 kibibytes it would receive
6879-
by default. By disabling "{{PermissionsPolicy/deferred-fetch-minimal}}" for the top-level document
6880-
itself, the entire 128 kibibytes delegated quota is collected back into the main pool of 640
6881-
kibibytes.
6879+
nested document, the document can prevent the document from reserving the 8 kibibytes it would
6880+
receive by default. By disabling "{{PermissionsPolicy/deferred-fetch-minimal}}" for the top-leve
6881+
document itself, the entire 128 kibibytes delegated quota is collected back into the main pool of
6882+
640 kibibytes.
68826883

68836884
<p>Out of the allocated quota for a {{Document}}, only 64 kibibytes can be used concurrently for the
68846885
same reporting origin (the <a for=/>request</a>'s <a for=request>URL</a>'s <a for=url>origin</a>).
@@ -6995,7 +6996,7 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
69956996
"<dfn for=PermissionsPolicy enum-value>deferred-fetch-minimal</dfn>". Its
69966997
<a for="policy-controlled feature">default allowlist</a> is "<code>*</code>".
69976998

6998-
<p>The <dfn>max containers with minimal quota</dfn> is 16.
6999+
<p>The <dfn>quota reserved for <code>deferred-fetch-minimal</code></dfn> is 128 kibibytes.
69997000

70007001
<div algorithm>
70017002
<p>To get the <dfn>available deferred-fetch quota</dfn> given a {{Document}}
@@ -7020,8 +7021,7 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
70207021

70217022
<li><p>If <var>controlDocument</var> is <a>allowed to use</a> the
70227023
<a>policy-controlled feature</a> "{{PermissionsPolicy/deferred-fetch-minimal}}", then
7023-
decrement <var>quota</var> by <a>max containers with minimal quota</a>, multiplied by
7024-
<a for="reserved deferred-fetch quota">minimal quota</a>.
7024+
decrement <var>quota</var> by <a>quota reserved for <code>deferred-fetch-minimal</code></a>.
70257025
</ol>
70267026

70277027
<p>Otherwise:
@@ -7065,7 +7065,9 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
70657065
<var>navigable</var>'s <a>navigable container</a>'s <a>reserved deferred-fetch quota</a>.
70667066

70677067
<li><p>If <var>quota</var> is less than 0, then return 0.
7068+
70687069
<li><p>If <var>quota</var> is less than <var>quotaForOrigin</var>, then return <var>quota</var>.
7070+
70697071
<li><p>Return <var>quotaForOrigin</var>.
70707072
</ol>
70717073
</div>
@@ -7111,7 +7113,8 @@ shared.
71117113
<a>descendant navigables</a>, <a for=list data-lt=remove>removing</a> any <a for=/>navigable</a>
71127114
whose <a>navigable container</a>'s <a>reserved deferred-fetch quota</a> is not
71137115
<a for="reserved deferred-fetch quota">minimal quota</a>, is less than
7114-
<a>max containers with minimal quota</a>
7116+
<a>quota reserved for <code>deferred-fetch-minimal</code></a> /
7117+
<a for="reserved deferred-fetch quota">minimal quota</a>.
71157118
</ul>
71167119

71177120
<p>then set <var>container</var>'s <a>reserved deferred-fetch quota</a> to

0 commit comments

Comments
 (0)