mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
LibWeb: Stub the ServiceWorkerRegistration
interface
This commit is contained in:
parent
70fdf7affb
commit
0c0a4a6042
Notes:
github-actions[bot]
2024-08-25 10:54:13 +00:00
Author: https://github.com/tcl3
Commit: 0c0a4a6042
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1173
8 changed files with 88 additions and 0 deletions
26
Userland/Libraries/LibWeb/HTML/ServiceWorkerRegistration.idl
Normal file
26
Userland/Libraries/LibWeb/HTML/ServiceWorkerRegistration.idl
Normal file
|
@ -0,0 +1,26 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
#import <DOM/EventHandler.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