Skip to content

Commit 1e2f858

Browse files
committed
Sort out some quota logic
1 parent 322a0dc commit 1e2f858

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

fetch.bs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6901,15 +6901,15 @@ This specification defined a <a>policy-controlled feature</a> identified by the
69016901
<li><p>If <var>document</var> is not <a>allowed to use</a> the
69026902
<a>policy-controlled feature</a> {{PermissionPolicy/"deferred-fetch"}}, then return 0.
69036903

6904-
<li><p>If <var>document</var> is <a>allowed to use</a> the
6904+
<li><p>Otherwise, if <var>document</var> is <a>allowed to use</a> the
69056905
<a>policy-controlled feature</a> {{PermissionPolicy/"deferred-fetch-minimal"}}, then set
69066906
<var>remainingTotalQuota</var> to 512 kibibytes.
69076907

69086908
<p class=note>When this permission policy is enabled, this document delegates 8KB to each of
69096909
the first 16 cross-origin subframes leaving 512kb for its own quota.
69106910

69116911
<li>
6912-
<p>Set <var>remainingTotalQuota</var> to 640 kibibytes.
6912+
<p>Otherwsise, set <var>remainingTotalQuota</var> to 640 kibibytes.
69136913
<p class="note allow-2119">640kb should be enough for everyone.
69146914
</ol>
69156915

@@ -6958,21 +6958,16 @@ This specification defined a <a>policy-controlled feature</a> identified by the
69586958
<var>relevantContainers</var> with every <a>shadow-including descendant</a> of
69596959
<var>relative</var> which is a <a>navigable container</a>.
69606960

6961-
<li>
6962-
<p><a for=list>For each</a> <var>descendantContainer</var> of <var>relevantContainers</var>,
6963-
decrement <var>remainingTotalQuota</var> by the <a>initial subframe deferred fetch quota</a>
6964-
given <var>descendantContainer</var>'s <a>deferred fetch policy</a>:
6965-
6966-
<li><p>If <var>remainingTotalQuota</var> is less than <var>remainingQuotaForOrigin</var>, then
6967-
return <var>remainingTotalQuota</var>.
6968-
6969-
<li><p>Return <var>remainingQuotaForOrigin</var>.
6961+
<li><p><a for=list>For each</a> <var>descendantContainer</var> of <var>relevantContainers</var>,
6962+
decrement <var>remainingTotalQuota</var> by the <a>initial subframe deferred fetch quota</a>
6963+
given <var>descendantContainer</var>'s <a>deferred fetch policy</a>.
6964+
</ol>
69706965
</li>
69716966

69726967
<li><p>If <var>remainingTotalQuota</var> is less than <var>remainingQuotaForOrigin</var>, then
69736968
return <var>remainingTotalQuota</var>.
69746969

6975-
<li><p>Return <var>remainingQuotaForOrigin</var>.
6970+
<li><p>Otherwise, return <var>remainingQuotaForOrigin</var>.
69766971
</ol>
69776972
</div>
69786973

0 commit comments

Comments
 (0)