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

@mingyc commented on this pull request.



> +
+<div algorithm>
+<p>To get the <dfn>available deferred-fetch quota</dfn> given a {{Document}}
+<var>controlDocument</var> and an <a for=/>origin</a>-or-null <var>origin</var>:
+
+<ol>
+ <li><p>Let <var>navigable</var> be <var>controlDocument</var>'s <a>node navigable</a>.
+
+ <li><p>Let <var>isTopLevel</var> be true if <var>controlDocument</var>'s <a>node navigable</a> is a
+ <a for=/>top-level traversable</a>; otherwise false.
+
+ <li><p>Let <var>deferredFetchAllowed</var> be true if <var>controlDocument</var> is
+ <a>allowed to use</a> the <a>policy-controlled feature</a> "{{PermissionsPolicy/deferred-fetch}}";
+ otherwise false.
+
+ <li><p>Let <var>deferredFetchMinimalAllowed</var> be true if <var>controlDocument</var> is

I think the latest matching conditions still don't cover `frame-4` below:

```
root (a.com) -> frame-1 (a.com) -> frame-2 (b.com)
             -> frame-3 (b.com) -> frame-4 (a.com)
```

`frame-4` has `isTopLevel == false`, `deferredFetchAllowed == false`, `deferredFetchMinimalAllowed == true`, but `reserved deferred-fetch quota` is 0, which leads to 0kb quota.

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

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

Received on Thursday, 16 January 2025 08:42:56 UTC