Re: [heycam/webidl] State that by default all objects are created in the relevant realm of `this` (#135)

Can we provide a default for "in parallel" blocks created from IDL methods and constructors too? We'd want to capture the relevant or current realm, respectively, at the point where the "in parallel" block starts, and use it as the "object-creation realm" within the block. Tasks posted from a context with an "object-creation realm" could inherit the same realm.

We still have some cases without an "object-creation realm", like https://webbluetoothcg.github.io/web-bluetooth/#notification-events. These tasks actually have an obvious realm to use, but it's lost when we pull the event loop out of the realm's settings object. We could extend "queue a task" to take its object-creation realm in order to have a default here too.

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

Received on Tuesday, 14 March 2017 22:13:48 UTC