mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
These no longer serve any purpose now that we run the IDLGenerator on all of these files at once.
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
// https://w3c.github.io/ServiceWorker/#serviceworkercontainer-interface
|
|
[SecureContext, Exposed=(Window,Worker)]
|
|
interface ServiceWorkerContainer : EventTarget {
|
|
[FIXME] readonly attribute ServiceWorker? controller;
|
|
readonly attribute Promise<ServiceWorkerRegistration> ready;
|
|
|
|
[NewObject, ImplementedAs=register_] Promise<ServiceWorkerRegistration> register((TrustedScriptURL or Utf16USVString) scriptURL, optional RegistrationOptions options = {});
|
|
|
|
[NewObject] Promise<(ServiceWorkerRegistration or undefined)> getRegistration(optional USVString clientURL = "");
|
|
[FIXME, NewObject] Promise<FrozenArray<ServiceWorkerRegistration>> getRegistrations();
|
|
|
|
[FIXME] undefined startMessages();
|
|
|
|
// events
|
|
attribute EventHandler oncontrollerchange;
|
|
attribute EventHandler onmessage; // event.source of message events is ServiceWorker object
|
|
attribute EventHandler onmessageerror;
|
|
};
|
|
|
|
dictionary RegistrationOptions {
|
|
USVString scope;
|
|
WorkerType type = "classic";
|
|
ServiceWorkerUpdateViaCache updateViaCache = "imports";
|
|
};
|