#import #import #import // 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 update(); [FIXME, NewObject] Promise unregister(); // event [FIXME] attribute EventHandler onupdatefound; }; enum ServiceWorkerUpdateViaCache { "imports", "all", "none" };