mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
|
@ -54,6 +54,8 @@ public:
|
|||
|
||||
Optional<FlyString> do_not_track() const;
|
||||
|
||||
JS::NonnullGCPtr<ServiceWorkerContainer> service_worker();
|
||||
|
||||
static WebIDL::Long max_touch_points();
|
||||
|
||||
virtual ~Navigator() override;
|
||||
|
@ -77,6 +79,9 @@ private:
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-navigator-useractivation
|
||||
JS::GCPtr<UserActivation> m_user_activation;
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
|
||||
JS::GCPtr<ServiceWorkerContainer> m_service_worker_container;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue