Skip to content

Commit c345eb8

Browse files
committed
Fix issue with reserve algo
1 parent 6432b5d commit c345eb8

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
@@ -7089,13 +7089,14 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
70897089
<p>To <dfn export>reserve deferred-fetch quota</dfn> for a <a>navigable container</a>
70907090
<var>container</var> given an <a for=/>origin</a> <var>originToNavigateTo</var>:
70917091

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

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

0 commit comments

Comments
 (0)