- From: François Daoust via GitHub <sysbot+gh@w3.org>
- Date: Fri, 19 Aug 2016 14:55:43 +0000
- To: public-webrtc@w3.org
tidoust has just created a new issue for https://github.com/w3c/webrtc-pc: == Interface RTCIdentityProviderGlobalScope should be defined with [Global,Exposed] == As defined, the `RTCIdentityProviderGlobalScope` interface cannot be used as a [global object](https://heycam.github.io/webidl/#Global), which is what I think you're trying to create here, and its [exposure set](https://heycam.github.io/webidl/#dfn-exposure-set) is the primary global interface, meaning `Window` in practice and you probably do not want to expose that interface there. The interface should rather be defined as: ```webidl [Global, Exposed=RTCIdentityProviderGlobalScope] interface RTCIdentityProviderGlobalScope { ... }; ``` (This is similar to the way [SharedWorkerGlobalScope](https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworkerglobalscope-interface) is defined for instance). Similarly, the `RTCIdentityProviderRegistrar` interface should be exposed on the `RTCIdentityProviderGlobalScope` global: ```webidl [Exposed=RTCIdentityProviderGlobalScope] interface RTCIdentityProviderRegistrar { ... } ``` By the way, the spec currently says: "The realm is populated with a global that implements WorkerGlobalScope" and never says that the global is actually an instance of the `RTCIdentityProviderGlobalScope` interface. Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/748 using your GitHub account
Received on Friday, 19 August 2016 14:55:50 UTC