Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec descendant frames' ongoing navigations block disableUntrustedNetwork promise from being resolved #210

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xiaochen-z
Copy link
Collaborator

@xiaochen-z xiaochen-z commented Feb 10, 2025

fix: #205

This PR only implements the change in algorithm "recalculate the untrusted network status of all fenced frame descendants".

The part that this algorithm should be called whenever a navigation commits will be done in a follow-up PR. I'm still investigating how to spec this. See previous comment on this.


Preview | Diff

@xiaochen-z xiaochen-z added the specification Additions to specifications label Feb 10, 2025
@xiaochen-z xiaochen-z changed the title Spec descendant frame' ongoing navigations block disableUntrustedNetwork promise from being resolved Spec descendant frames' ongoing navigations block disableUntrustedNetwork promise from being resolved Feb 10, 2025
@xiaochen-z xiaochen-z requested a review from blu25 February 10, 2025 20:04
[=iteration/continue=].
1. If |currentNavigable| is not a [=fenced navigable container/fenced navigable=]:

1. If |currentNavigable|' [=navigable/ongoing navigation=] is a [=navigation ID=]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to care if this is set to "traversal"?

@@ -2099,7 +2109,9 @@ Several APIs specific to fenced frames are defined on the {{Fence}} interface.

1. [=map/Clear=] |config|'s [=fenced frame config instance/on network disabled promises=].

1. Otherwise:
1. If |networkCutoffReady| is false or |currentNavigable|' [=navigable/ongoing navigation=] is
a [=navigation ID=]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're checking if |currentNavigable|'s ongoing navigation is a navigation ID 3 times in this loop. It should probably be pulled out into its own variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
specification Additions to specifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Spec] Promise returned by disableUntrustedNetwork call is not resolved with ongoing navigation
2 participants