Skip to content

Commit

Permalink
Fix trusted-types.idl
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip authored and queengooborg committed Dec 14, 2020
1 parent 4222af7 commit cec5f3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ed/idl/trusted-types.idl
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,27 @@ partial interface mixin WindowOrWorkerGlobalScope {
};

[Exposed=(Window,Worker)]
partial interface Worker : EventTarget {
partial interface Worker {
constructor(ScriptURLString scriptURL, optional WorkerOptions options = {});
};

[Exposed=(Window,Worker)]
partial interface SharedWorker : EventTarget {
partial interface SharedWorker {
constructor(ScriptURLString scriptURL, optional (DOMString or WorkerOptions) options = {});
};

[Exposed=Worker]
partial interface WorkerGlobalScope : EventTarget {
partial interface WorkerGlobalScope {
void importScripts(ScriptURLString... urls);
};

[SecureContext, Exposed=(Window,Worker)]
partial interface ServiceWorkerContainer : EventTarget {
partial interface ServiceWorkerContainer {
[NewObject] Promise<ServiceWorkerRegistration> register(ScriptURLString scriptURL, optional RegistrationOptions options = {});
};

[Exposed=Window]
partial interface mixin SVGAnimatedString {
partial interface SVGAnimatedString {
attribute (DOMString or TrustedScriptURL) baseVal;
};

Expand Down

0 comments on commit cec5f3e

Please sign in to comment.