Re: [whatwg/fetch] Deferred fetching (PR #1647)

@mingyc commented on this pull request.



> @@ -7093,13 +7093,14 @@ descendants share a quota of 384 kibibytes. That value is computed as such:
 <p>To <dfn export>reserve deferred-fetch quota</dfn> for a <a>navigable container</a>
 <var>container</var> given an <a for=/>origin</a> <var>originToNavigateTo</var>:
 
-<p class=note>This is called when <var>container</var> and the document that initiated the
-navigation (the "source document") are not <a>same origin</a>. It potentially
-reserves either 64kb or 8kb of quota for the frame, if  the permissions policy allow. It is not
-observable to the cotnainer document whether the reserved quota was used in practice.
-This algorithm assumes that the container's document might delegate quota to the navigated frame,
-and the reserved quota would only apply in that case, and would be ignored if it ends up being
-shared.
+<p class=note>This is called on navigation, when the source document of the navigation is the
+<a for=/>navigable</a>'s parent document. It potentially reserves either 64kb or 8kb of quota for
+the frame, if  the permissions policy allow. It is not observable to the cotnainer document whether
+the reserved quota was used in practice. This algorithm assumes that the container's document might
+delegate quota to the navigated frame, and the reserved quota would only apply in that case, and
+would be ignored if it ends up being shared. If quota was reserved and the document ends up being
+<a>same origin</a> with its parent, the quota would be
+<a data-lt="potentially free deferred-fetch quota">freed</a>.

> If quota was reserved and the document ends up being
<a>same origin</a> with its parent, the quota would be
<a data-lt="potentially free deferred-fetch quota">freed</a>

Could the triggering condition of `free` be more explicit? Is it something like

1. container document (iframe) navigates
2. container document inherits policies
3. container document reserves 64kb or 8kb
4. document (iframe's content document) gets created
5. document frees quota

?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1647#pullrequestreview-2535718831
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1647/review/2535718831@github.com>

Received on Wednesday, 8 January 2025 02:34:58 UTC