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