[whatwg/webidl] Ensure [Expose=*] works when the global object is not defined using IDL (PR #1177)

This is fixing an issue Dan caught, where it turns out that, since the global object inside the ShadowRealm is not defined using IDL, it's not an "interface" and hence not included in any "own exposure set". To that end, it removes the "the set of all global names of all interfaces which have the [Global] extended attribute" wording, which was pretty clunky anyway.

<!--
Thank you for contributing to the Web IDL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

CC @leobalter @littledan 

- [x] At least two implementers are interested (and none opposed):
   * I'm assuming this is fine, since `Exposed=*` needs this to work as intended.
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * Existing tests cover this.
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: …
   * Firefox: …
   * Safari: …
   * Deno: …
   * Node.js: …
   * webidl2.js: …
   * widlparser: …

(I still need to review which implementations, if any, need to change for this.)

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/webidl/pull/1177


-- Commit Summary --

  * Ensure [Expose=*] works when the global object is not defined using IDL

-- File Changes --

    M index.bs (43)

-- Patch Links --

https://github.com/whatwg/webidl/pull/1177.patch

https://github.com/whatwg/webidl/pull/1177.diff


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1177

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1177@github.com>

Received on Friday, 5 August 2022 08:06:24 UTC