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

@mingyc commented on this pull request.



> +      <a for="fetch group">deferred fetch records</a>:</p>
+      <ol>
+       <li><p>Let <var>requestLength</var> be the <a>total request length</a> of
+       <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>.
+
+       <li><p>Decrement <var>quota</var> by <var>requestLength</var>.
+
+       <li><p>If <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>'s
+       <a for=request>URL</a>'s <a for=url>origin</a> is <a>same origin</a> with <var>origin</var>,
+       then decrement <var>quotaForOrigin</var> by <var>requestLength</var>.
+      </ol>
+    </ol>
+
+   <li>
+    <p>Otherwise, if <var>otherNavigable</var> is not a <a for=/>top-level traversable</a>, and its
+    <a for=navigable>parent</a>'s <a>active document</a> and <var>document</var>

```
 if otherNavigable is not a top-level traversable, and its parent’s active document and document share deferred-fetch quota,
```

Given the following example

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

```

* What is `parent's active document` when `otherNavigable` is `frame_a`, is it root document?
* What is `parent's active document` when `otherNavigable` is `frame_b`, is it `frame_a` or `frame_a`'s document?

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

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

Received on Wednesday, 11 December 2024 05:27:08 UTC