- From: Ming-Ying Chung <notifications@github.com>
- Date: Fri, 29 Nov 2024 02:51:28 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1647/review/2469642142@github.com>
@mingyc commented on this pull request.
> + return.
+
+ <p class=note>Only the top level document and related documents can delegate the
+ {{PermissionPolicy/"deferred-fetch-minimal"}} policy.
+
+ <li><p>Let <var>framesWithMinimalQuotaPolicy</var> be zero.
+ <li>
+ <p><a for=list>For each</a> <var>navigable</var> that matches the following conditions:
+ <ul class=brief>
+
+ <li><p><var>navigable</var> is not <var>container</var>'s <a>content navigable</a>.
+
+ <li><p><var>topLevelRelatives</var> <a for=list>contains</a> <var>navigable</var>'s
+ <a for=navigable>parent</a>
+
+ <li><p><var>topLevelRelatives</var> does not <a for=list>contain</a> <var>navigable</var>
(Assume my question at [here](https://github.com/whatwg/fetch/pull/1647/files#r1863326213) is resolved first)
Given the following example:
```
<html>
<iframe id="frame-1" src="frame-1.html"></iframe>
<iframe id="frame-2" src="frame-2.html"></iframe>
<iframe id="frame-3" src="https://cross-domain.com/frame-3.html"></iframe>
<iframe id="frame-4" src="https://cross-domain.com/frame-4.html"></iframe>
</html>
```
I assume `framesWithMinimalQuotaPolicy` should be `1` when reaching `frame-4`, but the for loop does not give this result.
```
For each navigable that matches the following conditions:
- navigable is not container’s content navigable.
- topLevelRelatives contains navigable’s parent
- topLevelRelatives does not contain navigable
- navigable’s navigable container’s deferred fetch policy is "deferred-fetch-minimal"
```
- Is `topLevelRelatives` for `frame-3` or `frame-4` = `{frame-3, frame-4}`?
- If so, `topLevelRelatives contains navigable’s parent` will never hold.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1647#pullrequestreview-2469642142
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/pull/1647/review/2469642142@github.com>
Received on Friday, 29 November 2024 10:51:32 UTC