mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 19:22:30 -05:00
16 lines
604 B
Text
16 lines
604 B
Text
|
#import <HTML/WorkerGlobalScope.idl>
|
||
|
|
||
|
// https://html.spec.whatwg.org/multipage/workers.html#dedicatedworkerglobalscope
|
||
|
[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
|
||
|
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
||
|
[Replaceable] readonly attribute DOMString name;
|
||
|
|
||
|
// FIXME: IDL overload issue here
|
||
|
// FIXME: undefined postMessage(any message, sequence<object> transfer);
|
||
|
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
|
||
|
undefined close();
|
||
|
|
||
|
attribute EventHandler onmessage;
|
||
|
attribute EventHandler onmessageerror;
|
||
|
};
|