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

@mingyc commented on this pull request.



> + <li><p>Otherwise, return <var>remainingQuotaForOrigin</var>.
+</ol>
+</div>
+
+<div algorithm>
+<p>To <dfn export>determine subframe deferred fetch policy</dfn> for a <a>navigable container</a>
+<var>container</var> and an <a for=/>origin</a> <var>originToNavigateTo</var>:
+
+<p class=note>This is called whenever a <a>navigable container</a> is being navigated, e.g. by
+setting an iframe's <a attribute for=HTMLIFrameElement>src</a>.
+
+<ol>
+ <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

```
If the inherited policy for "deferred-fetch", navigable’s navigable container and originToNavigateTo is Enabled,
```

Does `navigable’s navigable container` mean the same `container` provided to [determine subframe deferred policy](https://whatpr.org/fetch/1647.html#determine-subframe-deferred-fetch-policy)? If so, can't it just be rephrased as `container`?

```
then set navigable’s deferred fetch policy to "deferred-fetch" and return.
```

Does this step try to set `navigable`'s deferred fetch policy? If not, should it just be `container`?

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

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

Received on Friday, 29 November 2024 04:04:46 UTC