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

@mingyc commented on this pull request.



> + <li><p>Set <var>container</var>'s <a>deferred fetch policy</a> to <code>disabled</code>.
+
+ <li><p>If the <a data-lt="define an inherited policy for feature in container">inherited policy</a>
+ for {{PermissionPolicy/"deferred-fetch"}}, <var>navigable</var>'s <a>navigable container</a> and
+ <var>originToNavigateTo</var> is <code>Enabled</code>, and the
+ <a>available deferred fetching quota</a> for <var>container</var>'s <a>container document</a> is
+ equal or greater than 64 kibibytes, then set <var>navigable</var>'s
+ <a>deferred fetch policy</a> to {{PermissionPolicy/"deferred-fetch"}} and return.
+
+ <li><p>If the <a data-lt="define an inherited policy for feature in container">inherited policy</a>
+ for {{PermissionPolicy/"deferred-fetch-minimal"}}, <var>container</var> and
+ <var>originToNavigateTo</var> is <code>Disabled</code>, then set <var>container</var>'s
+ <a>deferred fetch policy</a> to <code>disabled</code> and return.
+
+
+ <li><p>Let <var>topLevelRelatives</var> be <var>container</var>'s <a>container document</a>'s

```
Let topLevelRelatives be container’s container document’s deferred fetch quota-sharing navigables.
```

Could you clarify what does `container’s container document` mean and what are the values from calling `deferred fetch quota-sharing navigables` given the following example?

```
<html>
  <iframe id="frame-1" src="frame-1.html"></iframe>
  <iframe id="frame-2" src="frame-2.html"></iframe>
  <iframe id="frame-3" src="https://cross-domain.com/frame-3.html"></iframe>
  <iframe id="frame-4" src="https://cross-domain.com/frame-4.html"></iframe>
</html>
```

1. Given `frame-1`
   - Is the main document its `container’s container document`?
   - If so, the returned values from `deferred fetch quota-sharing navigables` is `main document`, `frame-1's document`, `frame-2's document`?
3. Given `frame-3`
  - Is the main document its `container’s container document`?
  - If so, the returned values from `deferred fetch quota-sharing navigables` is `main document`, `frame-1's document`, `frame-2's document`? But shouldn't they be `frame-3` `frame-4`?

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

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

Received on Friday, 29 November 2024 10:43:42 UTC