W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2016

[webrtc-pc] Interface RTCIdentityProviderGlobalScope should be defined with [Global, Exposed]

From: François Daoust via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Aug 2016 14:55:43 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-172150310-1471618539-sysbot+gh@w3.org>
tidoust has just created a new issue for 

== 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:

[Global, Exposed=RTCIdentityProviderGlobalScope]
interface RTCIdentityProviderGlobalScope { ... };

(This is similar to the way 
 is defined for instance).

Similarly, the `RTCIdentityProviderRegistrar` interface should be 
exposed on the `RTCIdentityProviderGlobalScope` global:

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`

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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:49 UTC