Skip to content

Commit de1457f

Browse files
committed
Fix issue with reserve algo
1 parent 838701d commit de1457f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

fetch.bs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7093,13 +7093,14 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
70937093
<p>To <dfn export>reserve deferred-fetch quota</dfn> for a <a>navigable container</a>
70947094
<var>container</var> given an <a for=/>origin</a> <var>originToNavigateTo</var>:
70957095

7096-
<p class=note>This is called when <var>container</var> and the document that initiated the
7097-
navigation (the "source document") are not <a>same origin</a>. It potentially
7098-
reserves either 64kb or 8kb of quota for the frame, if the permissions policy allow. It is not
7099-
observable to the cotnainer document whether the reserved quota was used in practice.
7100-
This algorithm assumes that the container's document might delegate quota to the navigated frame,
7101-
and the reserved quota would only apply in that case, and would be ignored if it ends up being
7102-
shared.
7096+
<p class=note>This is called on navigation, when the source document of the navigation is the
7097+
<a for=/>navigable</a>'s parent document. It potentially reserves either 64kb or 8kb of quota for
7098+
the frame, if the permissions policy allow. It is not observable to the cotnainer document whether
7099+
the reserved quota was used in practice. This algorithm assumes that the container's document might
7100+
delegate quota to the navigated frame, and the reserved quota would only apply in that case, and
7101+
would be ignored if it ends up being shared. If quota was reserved and the document ends up being
7102+
<a>same origin</a> with its parent, the quota would be
7103+
<a data-lt="potentially free deferred-fetch quota">freed</a>.
71037104

71047105
<ol>
71057106
<li><p>Set <var>container</var>'s <a>reserved deferred-fetch quota</a> to 0.

0 commit comments

Comments
 (0)