- From: Ming-Ying Chung <notifications@github.com>
- Date: Thu, 28 Nov 2024 20:16:16 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1647/review/2469056192@github.com>
@mingyc commented on this pull request. > +</div> + +<div algorithm> +<p>To <dfn export>determine subframe deferred fetch policy</dfn> for a <a>navigable container</a> +<var>container</var> and an <a for=/>origin</a> <var>originToNavigateTo</var>: + +<p class=note>This is called whenever a <a>navigable container</a> is being navigated, e.g. by +setting an iframe's <a attribute for=HTMLIFrameElement>src</a>. + +<ol> + <li><p>Set <var>container</var>'s <a>deferred fetch policy</a> to <code>disabled</code>. + + <li><p>If the <a data-lt="define an inherited policy for feature in container">inherited policy</a> + for {{PermissionPolicy/"deferred-fetch"}}, <var>navigable</var>'s <a>navigable container</a> and + <var>originToNavigateTo</var> is <code>Enabled</code>, and the + <a>available deferred fetching quota</a> for <var>container</var>'s <a>container document</a> is ``` and the available deferred fetching quota for container’s container document is equal or greater than 64 kibibytes ``` `quota for container’s container document` Could you help clarify with the following example? ``` <html> <iframe src="frame-1.html"></iframe> <iframe src="https://cross-domain.com/iframe-2.html"></iframe> </html> ``` - Assume `container` is `iframe-1`, as its parent (the `container's container document`) is the main document, its quota will be the same as the main document. - Assume `container` is `iframe-2` which is a cross-origin iframe. However, its parent is also the same main document, which will give the same deferred fetching quota as `iframe-1`? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1647#pullrequestreview-2469056192 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1647/review/2469056192@github.com>
Received on Friday, 29 November 2024 04:16:20 UTC