Skip to content

Commit d97b105

Browse files
committed
Editorial pass
1 parent 4c07c9c commit d97b105

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
@@ -6762,8 +6762,8 @@ sources, specifically task sources that can result in running scripts such as th
67626762

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

67696769
<ol>
@@ -6789,8 +6789,10 @@ takes no arguments:
67896789
<ol>
67906790
<li>
67916791
<p>The user agent should wait until any of the following conditions is met:
6792+
67926793
<ul class=brief>
67936794
<li><p>At least <var>activateAfter</var> milliseconds have passed.
6795+
67946796
<li><p>The user agent has a reason to believe that it is about to lose the opportunity to
67956797
execute scripts, e.g., when the browser is moved to the background, or when
67966798
<var>request</var>'s <a for=request>client</a> is a {{Document}} that had a
@@ -6824,19 +6826,18 @@ takes no arguments:
68246826
<a for=request>header list</a>, increment <var>totalRequestLength</var> by <var>name</var>'s
68256827
<a for="byte sequence">length</a> + <var>value</var>'s <a for="byte sequence">length</a>.
68266828

6827-
<li><p>Increment <var>totalRequestLength</var> by <var>request</var>'s
6828-
<a for=request>body</a>'s <a for=body>length</a>.
6829+
<li><p>Increment <var>totalRequestLength</var> by <var>request</var>'s <a for=request>body</a>'s
6830+
<a for=body>length</a>.
68296831

68306832
<li><p>Return <var>totalRequestLength</var>.
6833+
</ol>
68316834
</div>
68326835

68336836
<div algorithm>
6834-
<p>To <dfn>process deferred fetches</dfn> given a <a>fetch group</a>
6835-
<var>fetchGroup</var>, <a for=list>for each</a> <a for="fetch group">deferred fetch record</a>
6836-
<var>deferredRecord</var> of <var>fetchGroup</var>'s
6837-
<a for="fetch group">deferred fetch records</a> <a>process a deferred fetch</a>
6838-
<var>deferredRecord</var>.
6839-
</ol>
6837+
<p>To <dfn>process deferred fetches</dfn> given a <a>fetch group</a> <var>fetchGroup</var>,
6838+
<a for=list>for each</a> <a for="fetch group">deferred fetch record</a> <var>deferredRecord</var> of
6839+
<var>fetchGroup</var>'s <a for="fetch group">deferred fetch records</a>
6840+
<a>process a deferred fetch</a> <var>deferredRecord</var>.
68406841
</div>
68416842

68426843
<div algorithm>
@@ -6847,8 +6848,8 @@ takes no arguments:
68476848

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

6850-
<li><p><a for=/>Fetch</a> <var>deferredRecord</var>'s
6851-
<a for="deferred fetch record">request</a>.
6851+
<li><p><a for=/>Fetch</a> <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>.
6852+
68526853
<li><p>Return true.
68536854
</ol>
68546855
</div>
@@ -6865,16 +6866,16 @@ documents, using permissions policy.
68656866
cross-origin nested documents, each reserving 8 kibibytes.
68666867

68676868
<p>The top-level {{Document}}, and subsequently its nested documents, can control how much of their
6868-
quota is delegates to cross-origin/cross-agent nested documents, by using permissions policy.
6869-
By default, "{{PermissionsPolicy/deferred-fetch-minimal}}" is enabled for any origin, while
6869+
quota is delegates to cross-origin child documents, using permissions policy. By default,
6870+
"{{PermissionsPolicy/deferred-fetch-minimal}}" is enabled for any origin, while
68706871
"{{PermissionsPolicy/deferred-fetch}}" is enabled for the top-level document's origin only.
68716872
By relaxing the "{{PermissionsPolicy/deferred-fetch}}" policy for particular origins and nested
68726873
documents, the top-level document can allocate 64 kibibytes to those nested documents. Similarly, by
68736874
restricting the "{{PermissionsPolicy/deferred-fetch-minimal}}" policy for a particular origin or
6874-
nested document, the document can prevent the iframe from reserving the 8 kibibytes it would receive
6875-
by default. By disabling "{{PermissionsPolicy/deferred-fetch-minimal}}" for the top-level document
6876-
itself, the entire 128 kibibytes delegated quota is collected back into the main pool of 640
6877-
kibibytes.
6875+
nested document, the document can prevent the document from reserving the 8 kibibytes it would
6876+
receive by default. By disabling "{{PermissionsPolicy/deferred-fetch-minimal}}" for the top-leve
6877+
document itself, the entire 128 kibibytes delegated quota is collected back into the main pool of
6878+
640 kibibytes.
68786879

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

6994-
<p>The <dfn>max containers with minimal quota</dfn> is 16.
6995+
<p>The <dfn>quota reserved for <code>deferred-fetch-minimal</code></dfn> is 128 kibibytes.
69956996

69966997
<div algorithm>
69976998
<p>To get the <dfn>available deferred-fetch quota</dfn> given a {{Document}}
@@ -7016,8 +7017,7 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
70167017

70177018
<li><p>If <var>controlDocument</var> is <a>allowed to use</a> the
70187019
<a>policy-controlled feature</a> "{{PermissionsPolicy/deferred-fetch-minimal}}", then
7019-
decrement <var>quota</var> by <a>max containers with minimal quota</a>, multiplied by
7020-
<a for="reserved deferred-fetch quota">minimal quota</a>.
7020+
decrement <var>quota</var> by <a>quota reserved for <code>deferred-fetch-minimal</code></a>.
70217021
</ol>
70227022

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

70637063
<li><p>If <var>quota</var> is less than 0, then return 0.
7064+
70647065
<li><p>If <var>quota</var> is less than <var>quotaForOrigin</var>, then return <var>quota</var>.
7066+
70657067
<li><p>Return <var>quotaForOrigin</var>.
70667068
</ol>
70677069
</div>
@@ -7107,7 +7109,8 @@ shared.
71077109
<a>descendant navigables</a>, <a for=list data-lt=remove>removing</a> any <a for=/>navigable</a>
71087110
whose <a>navigable container</a>'s <a>reserved deferred-fetch quota</a> is not
71097111
<a for="reserved deferred-fetch quota">minimal quota</a>, is less than
7110-
<a>max containers with minimal quota</a>
7112+
<a>quota reserved for <code>deferred-fetch-minimal</code></a> /
7113+
<a for="reserved deferred-fetch quota">minimal quota</a>.
71117114
</ul>
71127115

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

0 commit comments

Comments
 (0)