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

Similar-origin window agent definition (un)clarity #4587

Closed
gterzian opened this issue May 2, 2019 · 4 comments
Closed

Similar-origin window agent definition (un)clarity #4587

gterzian opened this issue May 2, 2019 · 4 comments

Comments

@gterzian
Copy link
Member

gterzian commented May 2, 2019

from https://html.spec.whatwg.org/#similar-origin-window-agent

An agent whose [[CanBlock]] is false and whose set of realms consists of all realms of all same-agent Window objects.

Either the wording is unclear, or I'm missing something. Specifically, what is meant with " all realms of all same-agent Window objects"?

Could it be that what is in fact meant is more clearly expressed as:

An agent whose [[CanBlock]] is false and whose set of realms all consist of same-agent Window objects.

@annevk
Copy link
Member

annevk commented May 2, 2019

No, a Window object is not a realm. It's 1:1 with a realm, but they're not the same.

@gterzian
Copy link
Member Author

gterzian commented May 2, 2019

Ok, I was going to write that the current wording makes it sounds like a global grouping of all "same-agent Window objects" across the entire user-agent, and then I realized that's exactly what it is, since all "same-agent Window objects" will necessarily be part of the same "similar origin window agent", unlike mere "same-origin" ones, which could be part of different groups...

@gterzian gterzian closed this as completed May 2, 2019
@gterzian
Copy link
Member Author

gterzian commented May 2, 2019

One last question, which I'll keep in here for convenience and since it's related:

In the note just above that reads:

All same-agent Window objects together represent a group of Window objects that can synchronously access each other, though sometimes only after setting the document.domain attribute (in)appropriately.

Why mention a group of Window objects without further definition? Isn't such a group in fact a "Similar-origin window agent"? Could linking the note to definition make it more relevant?

@gterzian gterzian reopened this May 2, 2019
@annevk
Copy link
Member

annevk commented May 2, 2019

Well, we're using the grouping concept to define the agent concept. This will be revamped as per #4361 though.

@gterzian gterzian closed this as completed May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants