@@ -188,7 +188,8 @@ dictionary SFrameTransformOptions {
188188 SFrameTransformRole role = "encrypt";
189189};
190190
191- [Exposed=(Window,DedicatedWorker)]
191+ // FIXME: We plan to expose only in dedicated worker scopes, but may want to discuss extending it in other contexts.
192+ [Exposed=(Window,Worker)]
192193interface SFrameTransform {
193194 constructor(optional SFrameTransformOptions options = {});
194195 Promise<undefined> setEncryptionKey(CryptoKey key, optional unsigned long long keyID);
@@ -278,7 +279,8 @@ interface RTCEncodedAudioFrame {
278279
279280// New interfaces to expose JavaScript-based transforms.
280281
281- [Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
282+ // FIXME: We want to expose only in dedicated worker scopes.
283+ [Exposed=Worker]
282284interface RTCTransformEvent : Event {
283285 readonly attribute RTCRtpScriptTransformer transformer;
284286};
@@ -287,14 +289,15 @@ partial interface DedicatedWorkerGlobalScope {
287289 attribute EventHandler onrtctransform;
288290};
289291
290- [Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
292+ // FIXME: We want to expose only in dedicated worker scopes.
293+ [Exposed=Worker]
291294interface RTCRtpScriptTransformer {
292295 readonly attribute ReadableStream readable;
293296 readonly attribute WritableStream writable;
294297 readonly attribute any options;
295298};
296299
297- [Exposed=( Window) ]
300+ [Exposed=Window]
298301interface RTCRtpScriptTransform {
299302 constructor(Worker worker, optional any options);
300303 // FIXME: add messaging methods.
0 commit comments