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

@mingyc commented on this pull request.



> +   <a for="reserved deferred-fetch quota">minimal quota</a>.
+  </ul>
+
+  <p>then set <var>container</var>'s <a>reserved deferred-fetch quota</a> to
+  <a for="reserved deferred-fetch quota">minimal quota</a>.
+</ol>
+</div>
+
+<div algorithm>
+<p>To <dfn export>potentially free deferred-fetch quota</dfn> for a {{Document}}
+<var>document</var>, if <var>document</var>'s <a>node navigable</a>'s <a>container document</a> is
+not null, and its <a for=Document>origin</a> is <a>same origin</a> with <var>document</var>, then
+set <var>document</var>'s <a>node navigable</a>'s <a>navigable container</a>'s
+<a>reserved deferred-fetch quota</a> to 0.
+
+<p class=note>This is called when a {{Document}} is created. It ensures that same-origin nested

> This is called when a [Document](https://dom.spec.whatwg.org/#document) is created. It ensures that same-origin nested documents don’t reserve quota,

Is it true that cross-origin document will not have access to its navigable container's quota? If so, this algorithm automatically only works on same-origin content document?

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

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

Received on Wednesday, 8 January 2025 06:21:33 UTC