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

@noamr commented on this pull request.



> +  </ol>
+
+ <li><p>If <var>quota</var> is equal or less than 0, then return 0.
+
+ <li><p>If <var>quota</var> is less than <var>quotaForRequestOrigin</var>, then return
+ <var>quota</var>.
+
+ <li><p>Return <var>quotaForRequestOrigin</var>.
+</ol>
+</div>
+
+<div algorithm>
+<p>To <dfn export>reserve deferred-fetch quota</dfn> for a <a>navigable container</a>
+<var>container</var> given an <a for=/>origin</a> <var>originToNavigateTo</var>:
+
+<p class=note>This is called when <var>container</var> and the document that initiated the

Sorry, the informative note was a bit misleading.
This is called when the iframe is being [navigated](https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigate), provided that the `sourceDocument` of the navigation is the container document.

In the above case, navigation would only take place when the iframe is connected to the page. This happens [here](https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element:process-the-iframe-attributes), in the iframe's post-connection steps.



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

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

Received on Tuesday, 7 January 2025 09:13:44 UTC