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

@mingyc commented on this pull request.



>  
   <ol>
-   <li><p>If <var>deferredRecord</var>'s <a for="deferred fetch record">invoke state</a> is
-   "<code>done</code>" or "<code>aborted</code>", then <a for=iteration>continue</a>.
+   <li>

> For each navigable in controlDocument’s node navigable’s inclusive descendant navigables whose active document’s deferred-fetch control document is controlDocument:

>> For each container in navigable’s active document’s shadow-including inclusive descendants which is a navigable container, decrement quota by container’s reserved deferred-fetch quota.

Running these two loops will give a single cross-origin iframe 0 quota (which should be 8kb):

```
main (a.com) -> frame-1 (b.com)
```

- controlDocument of frame-1 is `frame-1`
- `For each navigable in controlDocument’s node navigable’s inclusive descendant navigables` => the loop includes `frame-1` itself
- `For each container in navigable’s active document’s shadow-including inclusive descendants which is a navigable container` => the loop includes `frame-1` itself
- Hence the quota 8kb is decremented by 8kb => 0 quota


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

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

Received on Thursday, 23 January 2025 03:40:04 UTC