ladybird/Userland/Libraries/LibWeb/HTML/Worker.idl
Matthew Olsson 26e6c47d0a IDL: Add missing spec links
The only IDL interface without a spec link is Internals
2023-11-11 08:51:51 +01:00

20 lines
536 B
Text

#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
// https://html.spec.whatwg.org/#worker
[Exposed=(Window)]
interface Worker : EventTarget {
constructor(DOMString scriptURL, optional WorkerOptions options = {});
undefined terminate();
undefined postMessage(any message, optional any transfer);
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
};
dictionary WorkerOptions {
USVString type = "classic";
USVString credentials = "same-origin";
DOMString name = "";
};