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

@mingyc commented on this pull request.



> +<var>container</var> given an <a for=/>origin</a> <var>originToNavigateTo</var>:
+
+<p class=note>This is called when the container document and the document that initiated the
+navigation (the "source document") <a>share deferred-fetch quota</a>. It potentially
+reserves either 64kb or 8kb of quota for the frame, if it doesn't <a>share deferred-fetch quota</a>
+with its parent and 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.
+
+<ol>
+ <li><p>If the <a data-lt="define an inherited policy for feature in container">inherited policy</a>
+ for {{PermissionPolicy/"deferred-fetch"}}, <var>container</var> and <var>originToNavigateTo</var>
+ is <code>Enabled</code>, and the <a>available deferred-fetch quota</a> for
+ <var>container</var>'s <a>container document</a> is equal or greater than

```
and the available deferred-fetch quota for container’s container document is equal or greater than optional subframe deferred-fetch quota, t
```

Given the following examples

```
root document (a.com) -> <div> -> frame_a (a.com) -> <div> -> frame_b (a.com)
```

* What is `container's container document` when the `navigable container` is `frame_a`? Is it root document?
* What is `container's container document` when the `navigable container` is `frame_b`? Is it `frame_a`?



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

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

Received on Wednesday, 11 December 2024 05:18:42 UTC