mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Add WorkerNavigator.serviceWorker API
This simply adds a ServiceWorkerContainer object to the WorkerNavigator.
This commit is contained in:
parent
7c953552b7
commit
2667726b74
Notes:
github-actions[bot]
2024-09-07 09:40:15 +00:00
Author: https://github.com/ADKaster
Commit: 2667726b74
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1293
Reviewed-by: https://github.com/awesomekling
3 changed files with 16 additions and 0 deletions
|
@ -10,6 +10,9 @@
|
|||
interface WorkerNavigator {
|
||||
// https://w3c.github.io/media-capabilities/#dom-workernavigator-mediacapabilities
|
||||
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
||||
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
||||
};
|
||||
|
||||
WorkerNavigator includes NavigatorID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue