mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +00:00
LibWeb: Implement Navigator.serviceWorker
This currently returns a stubbed `ServiceWorkerContainer` object.
This commit is contained in:
parent
53ab6fa403
commit
f3405b6eb2
Notes:
github-actions[bot]
2024-08-25 10:54:02 +00:00
Author: https://github.com/tcl3
Commit: f3405b6eb2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1173
3 changed files with 18 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
#import <HTML/NavigatorOnLine.idl>
|
||||
#import <HTML/NavigatorConcurrentHardware.idl>
|
||||
#import <HTML/PluginArray.idl>
|
||||
#import <HTML/ServiceWorkerContainer.idl>
|
||||
#import <HTML/UserActivation.idl>
|
||||
#import <StorageAPI/NavigatorStorage.idl>
|
||||
|
||||
|
@ -25,6 +26,9 @@ interface Navigator {
|
|||
|
||||
// https://www.w3.org/TR/tracking-dnt/#dom-navigator-donottrack
|
||||
readonly attribute DOMString? doNotTrack;
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
||||
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
||||
};
|
||||
|
||||
// NOTE: As NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, and NavigatorAutomationInformation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue