-
Notifications
You must be signed in to change notification settings - Fork 26
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
Clarify PerformanceObserver registration language in the spec #44
Comments
So we're doing The Web IDL spec does talk about "the ECMAScript global environment associated with the interface object" so you could use that language too; we'd then define it carefully in the IDL spec. |
Why is that a good model here? Mutation observers have to deal with nodes moving between globals, is that relevant for performance timelines? |
Right, I did. I'm wondering why you went with "unit of related similar-origin browsing contexts" rather than scoping it to a global as @bzbarsky suggested. |
Perhaps not the best one: perf observer processing was already using that language.
Does that sound about right? |
Yeah, modulo that HTML calls it "JavaScript global environment" or "environment settings object". Ugh, we should really figure out some consistent wording. @bzbarsky should probably sign off though, he knows this better. |
Yes, we need to figure out consistent wording. We have "JavaScript global environment" (HTML), "Realm" (ES6), "ECMAScript global environment" (WebIDL). These may or may not all be the same thing, but I think in practice they are. Also, "environment settings object" is claimed by hixie to be subtly different from just "a global", but I have never quite understood what the difference is, and it's not spelled out anywhere. Which is to say, that I have no clue what to call this thing, or even what "this thing" is, offhand. :( |
The difference between "environment settings object" and "global" is I think that the former is language-neutral. I'm not sure how strongly we need to care about that though. |
I seem to recall hixie claiming that the relationship between environment settings objects and globals was not 1-1... |
Hmm, so what's the verdict here? Should I go with the WebIDL version? :) |
@annevk should I block this on whatwg/html#167? Can't tell which way you're intending to head in that one. |
I think going with either the IDL version or what is in HTML today is probably fine for a MVP. We can revisit once cleanup has happened. |
Looks okay. Probably also want to ask feedback on [email protected] for the design of the API. |
@annevk thanks, I'll land this then and we can iterate from there. |
Continuation of #43. In particular, this language:
Related: #40 (comment), #43 (comment), and https://www.w3.org/Bugs/Public/show_bug.cgi?id=24652.
@annevk @bzbarsky would appreciate any tips on how to spec this.. unclear on the plumbing.
The text was updated successfully, but these errors were encountered: