Skip to content

Add site and obtain a site - #5354

Merged
annevk merged 3 commits into
masterfrom
annevk/expose-obtain-a-site
Mar 24, 2020
Merged

annevk merged 3 commits into
masterfrom
annevk/expose-obtain-a-site

Conversation

@annevk

@annevk annevk commented Mar 13, 2020 •

Copy link
Copy Markdown
Member

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 )

Comment thread source
<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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

domenic commented Mar 13, 2020

Copy link
Copy Markdown
Member

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

annevk commented Mar 14, 2020

Copy link
Copy Markdown
Member Author

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

domenic commented Mar 14, 2020

Copy link
Copy Markdown
Member

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

annevk commented Mar 23, 2020

Copy link
Copy Markdown
Member Author

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.

Comment thread source

<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
Copy Markdown
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.

Comment thread source
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
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@annevk

annevk commented Mar 24, 2020

Copy link
Copy Markdown
Member Author

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

2 participants