ladybird/Userland/Libraries/LibWeb/HTML/Worker.idl
2023-02-23 15:48:38 +00:00

20 lines
512 B
Plaintext

#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
[Exposed=(Window), UseNewAKString]
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 = "";
};