mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
4417f63ca0
These are defined by the ServiceWorker spec, not the HTML one.
27 lines
901 B
Text
27 lines
901 B
Text
#import <DOM/EventTarget.idl>
|
|
#import <DOM/EventHandler.idl>
|
|
#import <ServiceWorker/ServiceWorker.idl>
|
|
|
|
// https://w3c.github.io/ServiceWorker/#serviceworkerregistration-interface
|
|
[SecureContext, Exposed=(Window,Worker)]
|
|
interface ServiceWorkerRegistration : EventTarget {
|
|
[FIXME] readonly attribute ServiceWorker? installing;
|
|
[FIXME] readonly attribute ServiceWorker? waiting;
|
|
[FIXME] readonly attribute ServiceWorker? active;
|
|
[FIXME, SameObject] readonly attribute NavigationPreloadManager navigationPreload;
|
|
|
|
[FIXME] readonly attribute USVString scope;
|
|
[FIXME] readonly attribute ServiceWorkerUpdateViaCache updateViaCache;
|
|
|
|
[FIXME, NewObject] Promise<undefined> update();
|
|
[FIXME, NewObject] Promise<boolean> unregister();
|
|
|
|
// event
|
|
[FIXME] attribute EventHandler onupdatefound;
|
|
};
|
|
|
|
enum ServiceWorkerUpdateViaCache {
|
|
"imports",
|
|
"all",
|
|
"none"
|
|
};
|