Repository navigation
Define "secure context" - #5659
Conversation
annevk
left a comment
There was a problem hiding this comment.
One thing I was thinking of is renaming the internal concept to "secure environment" to more accurately capture what it is about.
|
|
||
| <ol> | ||
| <li> | ||
| <p>If <var>environment</var> is an <span>environment settings object</span>, and its <span |
|
Hmm, I guess HTTPS state should be checked although there's only a single implementation who cares about "deprecated" at the moment and that's Chrome. But that seems fairly easy to add. An environment is not a secure context if its HTTPS state is "deprecated". We might also want to expose the API in worklets at some point, but I guess we can wait until there are requests and we wouldn't want to use this PR to add new features anyway. |
|
OK, force-pushed a new commit that takes into account HTTPS state (which led to some algorithm restructuring), and also a separate commit on top of this which uses the resulting definition for COOP. |
I agree that would have been a better name from the beginning, but the current terminology is so deeply embedded in how we talk about security on the web, I'd rather not shift things now. |
|
This supersedes the definition in https://w3c.github.io/webappsec-secure-contexts/, and fixes several bugs while doing so. Closes #5558. Closes w3c/webappsec-secure-contexts#56. Closes w3c/webappsec-secure-contexts#57. Closes w3c/webappsec-secure-contexts#74. Closes w3c/webappsec-secure-contexts#75.
Fixes #5669. This also fixes existing mismatched parameter passing to the "obtain a cross-origin opener policy" algorithm.
|
Alright, force-pushed to update both commits to address those points. PTAL! |
This supersedes the definition in
https://w3c.github.io/webappsec-secure-contexts/, and fixes several bugs
while doing so.
Closes #5558. Closes w3c/webappsec-secure-contexts#56. Closes
w3c/webappsec-secure-contexts#57. Closes
w3c/webappsec-secure-contexts#74. Closes
w3c/webappsec-secure-contexts#75.
Notes/things to discuss:
data-lt=""to preserve autolinks the first one. I can't figure out how to preserve autolinks to the middle one as it would require adata-dfn-for="", which would break the other two. /cc @tabatkinsisSecureContexthere since that is mentioned as an open item in https://w3c.github.io/webappsec-secure-contexts/#monkey-patching-global-object/browsing-the-web.html ( diff )
/infrastructure.html ( diff )
/origin.html ( diff )
/parsing.html ( diff )
/webappapis.html ( diff )
/workers.html ( diff )