-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add site and obtain a site #5354
Conversation
source
Outdated
@@ -91733,11 +91733,11 @@ import "https://example.com/foo/../module2.mjs";</code></pre> | |||
<p>A <dfn data-export="">scheme-and-registrable-domain</dfn> is a <span>tuple</span> of a <span | |||
data-x="concept-url-scheme">scheme</span> and a <span data-x="concept-domain">domain</span>.</p> | |||
|
|||
<p>An <dfn data-export="">agent cluster key</dfn> is an <span>origin</span> or a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also wasn't clear to me why we exported agent cluster key. I didn't investigate though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this for now.
We should either remove "obtain an agent cluster key" or change it to take a BCG too, and move the "if cross-origin isolated, return origin" logic into there. |
That seems like a reasonable thing to do. That leaves the question of whether to distinguish site and agent cluster key more. We probably do not want to combine them as that will give the same kind of ambiguities. Should I just spell it out more that if a site is an origin it's either because it's opaque or its registrable domain is null? Whereas for an agent cluster that doesn't hold. |
That sounds like a pretty good clarification, yeah. |
It's useful for whatwg/fetch#943 to be able to distinguish between a site and agent cluster key as #4734 changes how agent clusters can be keyed.
6be1052
to
abbf781
Compare
I think this is ready now and would allow Fetch to build on it. And once merged I could rebase the other PR to take advantage of it as discussed. |
|
||
<p class="XXX"><a href="https://github.com/whatwg/html/pull/4734">whatwg/html #4734</a> is | ||
expected to widen <span>agent cluster key</span> (but not <span>site</span>) to encompass all | ||
<span data-x="concept-origin-tuple">tuple origins</span>.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move this one paragraph down so its clearer that it applies to both of the currently-trivial definitions? Not sure though.
@@ -91744,11 +91744,13 @@ import "https://example.com/foo/../module2.mjs";</code></pre> | |||
<p>A <dfn data-export="">scheme-and-registrable-domain</dfn> is a <span>tuple</span> of a <span | |||
data-x="concept-url-scheme">scheme</span> and a <span data-x="concept-domain">domain</span>.</p> | |||
|
|||
<p>An <dfn data-export="">agent cluster key</dfn> is an <span>origin</span> or a | |||
<p>A <dfn data-export="">site</dfn> is an <span data-x="concept-origin-opaque">opaque |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"either an" maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per https://dictionary.cambridge.org/grammar/british-grammar/either that's for two choices.
I'm going to merge this, but I'm happy to revisit the editorial discussion in the follow-up PR. |
It's useful for whatwg/fetch#943 to be able to distinguish between a site and agent cluster key as #4734 changes how agent clusters can be keyed, but that should not impact the key used for caches.
However, #4734 does not change this algorithm directly. Perhaps we should remove "obtain an agent cluster key" entirely? (The other weird thing is that the key type doesn't really change, except insofar that the origin can have a host that has a non-null registrable domain.)
Thoughts?
cc @shivanigithub @domenic
/webappapis.html ( diff )