Re: [whatwg/webidl] Elaborate on Exposed=* advice (Issue #1119)

It seems like so far the set of APIs chosen to be included inside shadow realms has been limited to interfaces (rather than to methods or properties defined in the global property) plus `self` which is defined programmatically in #5339. In particular, there doesn't seem to be any reason to exclude methods like `setTimeout`, `reportError` or even `structuredClone`, other than the fact that `[Exposed=*]` as currently defined doesn't work for them.

I don't think such methods have been considered that much, and maybe this is not the right issue (since as mentioned `[Exposed=*]` wouldn't work with methods), but it is something that should not be left out of consideration just because it would be more difficult to make them work in the specification.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1119#issuecomment-1343273816
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1119/1343273816@github.com>

Received on Thursday, 8 December 2022 19:51:49 UTC