mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb: Move ServiceWorker classes to ServiceWorker namespace
These are defined by the ServiceWorker spec, not the HTML one.
This commit is contained in:
parent
2918405360
commit
4417f63ca0
Notes:
github-actions[bot]
2024-11-30 10:20:43 +00:00
Author: https://github.com/shannonbooth
Commit: 4417f63ca0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2653
19 changed files with 44 additions and 37 deletions
27
Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.idl
Normal file
27
Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.idl
Normal file
|
@ -0,0 +1,27 @@
|
|||
#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"
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue