Skip to content

Commit c740fd1

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

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

fetch.bs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6890,38 +6890,38 @@ This specification defined a <a>policy-controlled feature</a> identified by the
68906890
<li><p>Let <var>relativeNavigables</var> be <var>document</var>'s
68916891
<a>deferred fetch quota-sharing navigables</a>.
68926892

6893-
<li><p>Let <var>remainingTotalQuota</var> be zero.
6893+
<li>
6894+
<p>Let <var>remainingTotalQuota</var> be 640 kibibytes.
6895+
<p class="note allow-2119">640kb should be enough for everyone.
68946896

68956897
<li>
68966898
<p><a for=list>For each</a> <var>navigable</var> in <var>relativeNavigables</var>:
68976899
<ol>
68986900
<li>
6899-
<p>If <var>document</var>'s <a>node navigable</a> is a <a for=/>top-level traversable</a> then:
6901+
<p>If <var>navigable</var> is a <a for=/>top-level traversable</a> then:
69006902
<ol>
6901-
<li><p>If <var>document</var> is not <a>allowed to use</a> the
6903+
<li><p>If <var>navigable</var>'s <a>active document</a> is not <a>allowed to use</a> the
69026904
<a>policy-controlled feature</a> {{PermissionPolicy/"deferred-fetch"}}, then return 0.
69036905

6904-
<li><p>Otherwise, if <var>document</var> is <a>allowed to use</a> the
6905-
<a>policy-controlled feature</a> {{PermissionPolicy/"deferred-fetch-minimal"}}, then set
6906+
<li><p>Otherwise, if <var>navigable</var>'s <a>active document</a> is <a>allowed to use</a>
6907+
the <a>policy-controlled feature</a> {{PermissionPolicy/"deferred-fetch-minimal"}}, then set
69066908
<var>remainingTotalQuota</var> to 512 kibibytes.
69076909

69086910
<p class=note>When this permission policy is enabled, this document delegates 8KB to each of
69096911
the first 16 cross-origin subframes leaving 512kb for its own quota.
6910-
6911-
<li>
6912-
<p>Otherwsise, set <var>remainingTotalQuota</var> to 640 kibibytes.
6913-
<p class="note allow-2119">640kb should be enough for everyone.
69146912
</ol>
69156913

69166914
<li>
69176915
<p>Otherwise:</p>
69186916
<ol>
6919-
<li><p>Let <var>containerPolicy</var> be <var>document</var>'s <a>node navigable</a>'s
6917+
<li><p>Let <var>containerPolicy</var> be <var>navigable</var>'s
69206918
<a for=navigable>container</a>'s <a>deferred fetch policy</a>.
69216919

6922-
<li><p>If <var>containerPolicy</var> is not <code>disabled</code> and <var>document</var> is
6923-
<a>allowed to use</a> <var>containerPolicy</var>, then set <var>remainingTotalQuota</var> to
6924-
the <a>initial subframe deferred fetch quota</a> given <var>containerPolicy</var>.
6920+
<li><p>If <var>containerPolicy</var> is <code>disabled</code> or <var>navigable</var>'s
6921+
<a>active document</a> is not <a>allowed to use</a> <var>containerPolicy</var>, then return 0.
6922+
6923+
<li><p>Otherwise, set <var>remainingTotalQuota</var> to the
6924+
<a>initial subframe deferred fetch quota</a> given <var>containerPolicy</var>.
69256925
</ol>
69266926
</ol>
69276927

0 commit comments

Comments
 (0)