Skip to content

Commit 11c8f9f

Browse files
authored
Replace DedicatedWorker by Worker for now and remove global which is wrong as well (#78)
Remove DedicatedWorker for now and remove global which is wrong as well
1 parent eac51f0 commit 11c8f9f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.bs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)]
192193
interface 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]
282284
interface 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]
291294
interface RTCRtpScriptTransformer {
292295
readonly attribute ReadableStream readable;
293296
readonly attribute WritableStream writable;
294297
readonly attribute any options;
295298
};
296299

297-
[Exposed=(Window)]
300+
[Exposed=Window]
298301
interface RTCRtpScriptTransform {
299302
constructor(Worker worker, optional any options);
300303
// FIXME: add messaging methods.

0 commit comments

Comments
 (0)