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] Network revocation patches for WebSocket and WebTransport APIs #206

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

Conversation

blu25
Copy link
Collaborator

@blu25 blu25 commented Jan 10, 2025

This ensures that the following things happen for both WebTransport and WebSocket objects:

  • All open connections associated with a context are closed when untrusted network access is revoked.
  • New connections cannot be created after network access is revoked.

Preview | Diff

@blu25 blu25 requested a review from VergeA January 13, 2025 19:48
@blu25 blu25 marked this pull request as ready for review January 13, 2025 19:48
spec.bs Show resolved Hide resolved
In the intermediate state where {{Fence/disableUntrustedNetwork()}} has been called but the returned
{{Promise}} has not [=resolved=] yet, there are restrictions on features that involve making
requests over the network. The second algorithm below is used to determine whether those features
are allowed.
Copy link
Collaborator

@VergeA VergeA Jan 14, 2025

Choose a reason for hiding this comment

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

I think it might be good to mention that in this state, nested fenced frame trees may still have network access, and these restrictions will not apply to them until they also disable network. Hence why the algorithm below relies on the keyword "itself."

@VergeA
Copy link
Collaborator

VergeA commented Jan 14, 2025

LGTM % 1 comment

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

Successfully merging this pull request may close these issues.

2 participants