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

Add site and obtain a site #5354

Merged
merged 3 commits into from
Mar 24, 2020
Merged

Add site and obtain a site #5354

merged 3 commits into from
Mar 24, 2020

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 13, 2020

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 )

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
Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like 0404472 exported some stuff and not other stuff, but unclear why. @dtapuska thoughts?

Copy link
Member Author

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.

@domenic
Copy link
Member

domenic commented Mar 13, 2020

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.

@annevk
Copy link
Member Author

annevk commented Mar 14, 2020

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.

@domenic
Copy link
Member

domenic commented Mar 14, 2020

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.
@annevk annevk force-pushed the annevk/expose-obtain-a-site branch from 6be1052 to abbf781 Compare March 23, 2020 10:12
@annevk annevk marked this pull request as ready for review March 23, 2020 10:24
@annevk annevk requested a review from domenic March 23, 2020 10:25
@annevk
Copy link
Member Author

annevk commented Mar 23, 2020

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>
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

"either an" maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

@annevk
Copy link
Member Author

annevk commented Mar 24, 2020

I'm going to merge this, but I'm happy to revisit the editorial discussion in the follow-up PR.

@annevk annevk merged commit a288ff9 into master Mar 24, 2020
@annevk annevk deleted the annevk/expose-obtain-a-site branch March 24, 2020 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants