@@ -2762,7 +2762,10 @@ not <a for=Document>fully active</a>. It has the following <a for=struct>items</
2762
2762
</dl>
2763
2763
2764
2764
<p> Each <a>navigable container</a> has an associated number
2765
- <dfn>reserved deferred-fetch quota</dfn> . Unless stated otherwise, it is 0.
2765
+ <dfn>reserved deferred-fetch quota</dfn> . Its possible values are
2766
+ <dfn for="reserved deferred-fetch quota">minimal quota</dfn> , which is 8 kibibytes,
2767
+ <dfn for="reserved deferred-fetch quota">normal quota</dfn> , which is 64 kibibytes, or 0. Unless
2768
+ stated otherwise, it is 0.
2766
2769
2767
2770
<hr>
2768
2771
@@ -7029,14 +7032,13 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
7029
7032
<li>
7030
7033
<p> If <var> otherContainer</var> is null, then:
7031
7034
7032
- <p class=note> Initialize the quota from the top-level traversable.
7035
+ <p class=note> Accumulate the <a for=/> top-level traversable</a> 's initial quota .
7033
7036
7034
7037
<ol>
7035
- <li><p> Assert: <var> quota</var> is 0.
7038
+ <li><p> If <var> otherDocument</var> is not <a>allowed to use</a> the
7039
+ <a>policy-controlled feature</a> "{{PermissionsPolicy/deferred-fetch}} ", then return 0.
7036
7040
7037
- <li><p> If <var> otherDocument</var> is not
7038
- <a>allowed to use</a> the <a>policy-controlled feature</a>
7039
- "{{PermissionsPolicy/deferred-fetch}} ", then return 0.
7041
+ <li><p> Assert: <var> quota</var> is 0.
7040
7042
7041
7043
<li>
7042
7044
<p> Set <var> quota</var> be 640 kibibytes.
@@ -7045,30 +7047,35 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
7045
7047
<li><p> If <var> otherDocument</var> is <a>allowed to use</a> the
7046
7048
<a>policy-controlled feature</a> "{{PermissionsPolicy/deferred-fetch-minimal}} ", then
7047
7049
decrement <var> quota</var> by <a>max containers with minimal quota</a> , multiplied by
7048
- <a for="reserved deferred-fetch quota">minimal</a> .
7050
+ <a for="reserved deferred-fetch quota">minimal quota </a> .
7049
7051
</ol>
7050
7052
7051
7053
<li>
7052
7054
<p> Otherwise, if any of the following conditions is true:
7055
+
7053
7056
<ul class=brief>
7054
7057
<li><p><var> otherContainer</var> 's <a>reserved deferred-fetch quota</a> is
7055
- <a for="reserved deferred-fetch quota">normal</a> , and <var> otherDocument</var> is
7058
+ <a for="reserved deferred-fetch quota">normal quota </a> , and <var> otherDocument</var> is
7056
7059
<a>allowed to use</a> the <a>policy-controlled feature</a>
7057
7060
"{{PermissionsPolicy/deferred-fetch}} "
7058
7061
7059
7062
<li><p><var> otherContainer</var> 's <a>reserved deferred-fetch quota</a> is
7060
- <a for="reserved deferred-fetch quota">minimal</a> , and <var> otherDocument</var> is
7063
+ <a for="reserved deferred-fetch quota">minimal quota </a> , and <var> otherDocument</var> is
7061
7064
<a>allowed to use</a> the <a>policy-controlled feature</a>
7062
7065
"{{PermissionsPolicy/deferred-fetch-minimal}} "
7063
7066
</ul>
7064
7067
7065
7068
<p> then increment <var> quota</var> by <var> otherContainer</var> 's
7066
7069
<a>reserved deferred-fetch quota</a> .
7070
+ <p class=note> Accumulate quota granted by parent documents.
7067
7071
7068
7072
<li>
7069
7073
<p> <a for=list>For each</a> <a>deferred fetch record</a> <var> deferredRecord</var> of
7070
7074
<var> otherDocument</var> 's <a for=fetch>fetch group</a>' s
7071
7075
<a for="fetch group">deferred fetch records</a> :</p>
7076
+
7077
+ <p class=note> Account for quota on deferred fetches performed by <a>same origin</a> clients.
7078
+
7072
7079
<ol>
7073
7080
<li><p> Let <var> requestLength</var> be the <a>total request length</a> of
7074
7081
<var> deferredRecord</var> 's <a for="deferred fetch record">request</a> .
@@ -7081,17 +7088,17 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
7081
7088
</ol>
7082
7089
</ol>
7083
7090
7084
- <li><p> Otherwise, if <var> otherDocument</var> 's <a>container document</a> is a {{Document}} whose
7085
- <a for=Document>origin</a> is <a>same origin</a> with <var> requestClientDocument</var> 's
7086
- <a for=Document>origin</a> , then decrement <var> quota</var> by <var> otherNavigable</var> 's
7087
- <a>navigable container</a> 's <a>reserved deferred-fetch quota</a> .
7088
- </ol>
7089
-
7090
- <li><p> If <var> quota</var> is less than 0, than return 0.
7091
+ <li>
7092
+ <p> If <var> otherDocument</var> 's <a>container document</a> is a {{Document}} whose
7093
+ <a for=Document>origin</a> is <a>same origin</a> with <var> requestClientDocument</var> 's
7094
+ <a for=Document>origin</a> , then decrement <var> quota</var> by <var> otherNavigable</var> 's
7095
+ <a>navigable container</a> 's <a>reserved deferred-fetch quota</a> .
7091
7096
7092
- <li><p> If <var> quota </var> is less than <var> quotaForOrigin </var> , then
7093
- return <var> quota </var> .
7097
+ <p class=note> Account for quota granted to child documents.
7098
+ </ol>
7094
7099
7100
+ <li><p> If <var> quota</var> is less than 0, then return 0.
7101
+ <li><p> If <var> quota</var> is less than <var> quotaForOrigin</var> , then return <var> quota</var> .
7095
7102
<li><p> Return <var> quotaForOrigin</var> .
7096
7103
</ol>
7097
7104
</div>
@@ -7116,8 +7123,8 @@ shared.
7116
7123
for "{{PermissionsPolicy/deferred-fetch}} ", <var> container</var> and <var> originToNavigateTo</var>
7117
7124
is <code> Enabled</code> , and the <a>available deferred-fetch quota</a> for
7118
7125
<var> container</var> 's <a>container document</a> is equal or greater than
7119
- <a for="reserved deferred-fetch quota">normal</a> , then set <var> container</var> 's
7120
- <a>reserved deferred-fetch quota</a> to <a for="reserved deferred-fetch quota">normal</a> and
7126
+ <a for="reserved deferred-fetch quota">normal quota </a> , then set <var> container</var> 's
7127
+ <a>reserved deferred-fetch quota</a> to <a for="reserved deferred-fetch quota">normal quota </a> and
7121
7128
return.
7122
7129
7123
7130
<li><p> If the <a data-lt="define an inherited policy for feature in container">inherited policy</a>
@@ -7133,11 +7140,11 @@ shared.
7133
7140
<a>node navigable</a> 's <a for=navigable>top-level traversable</a>' s
7134
7141
<a>descendant navigables</a> , <a for=list data-lt=remove>removing</a> any <a for=/>navigable</a>
7135
7142
whose <a>reserved deferred-fetch quota</a> is not
7136
- <a for="reserved deferred-fetch quota">minimal</a> .
7143
+ <a for="reserved deferred-fetch quota">minimal quota </a> .
7137
7144
7138
7145
<li><p> If <var> containersWithReservedMinimalQuota</var> 's <a for=list>size</a> is less
7139
7146
than <a>max containers with minimal quota</a> , then set <var> container</var> 's
7140
- <a>reserved deferred-fetch quota</a> to <a for="reserved deferred-fetch quota">minimal</a> .
7147
+ <a>reserved deferred-fetch quota</a> to <a for="reserved deferred-fetch quota">minimal quota </a> .
7141
7148
</ol>
7142
7149
</div>
7143
7150
0 commit comments