mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +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
|
@ -13,10 +13,10 @@
|
|||
#include <LibWeb/Clipboard/Clipboard.h>
|
||||
#include <LibWeb/HTML/Navigator.h>
|
||||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||||
#include <LibWeb/HTML/ServiceWorkerContainer.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
#include <LibWeb/ServiceWorker/ServiceWorkerContainer.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -117,10 +117,10 @@ Optional<FlyString> Navigator::do_not_track() const
|
|||
return {};
|
||||
}
|
||||
|
||||
GC::Ref<ServiceWorkerContainer> Navigator::service_worker()
|
||||
GC::Ref<ServiceWorker::ServiceWorkerContainer> Navigator::service_worker()
|
||||
{
|
||||
if (!m_service_worker_container)
|
||||
m_service_worker_container = realm().create<ServiceWorkerContainer>(realm());
|
||||
m_service_worker_container = realm().create<ServiceWorker::ServiceWorkerContainer>(realm());
|
||||
return *m_service_worker_container;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue