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

Need to consider globals #2

Open
tidoust opened this issue Feb 21, 2024 · 1 comment
Open

Need to consider globals #2

tidoust opened this issue Feb 21, 2024 · 1 comment

Comments

@tidoust
Copy link

tidoust commented Feb 21, 2024

Reporting the gist of the discussion in w3c/webref#1142 (comment): to avoid redundancy, interfaces may not be flagged as [SecureContext] in specs when they are only exposed to globals that are themselves only available in secure contexts, such as the ServiceWorker global. As a result, the logic that determines whether an IDL construct is secure context only also needs to take globals into account.

Updating the logic may not be worth the hassle in practice. This would likely only add the ExtendableCookieChangeEvent to the list of interfaces that are only usable in secure contexts.

(For Service Workers, the underlying interface ServiceWorkerGlobalScope did not have a [SecureContext] flag. Now fixed in the spec!)

@wbamberg
Copy link
Owner

wbamberg commented Feb 21, 2024

Thank you François! I agree we should add this check, and yay for having ServiceWorkerGlobalScope marked secure context!

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

No branches or pull requests

2 participants