LibWeb: Move ServiceWorker classes to ServiceWorker namespace

These are defined by the ServiceWorker spec, not the HTML one.
This commit is contained in:
Shannon Booth 2024-11-30 18:01:40 +13:00 committed by Andreas Kling
parent 2918405360
commit 4417f63ca0
Notes: github-actions[bot] 2024-11-30 10:20:43 +00:00
19 changed files with 44 additions and 37 deletions

View file

@ -47,10 +47,10 @@ GC::Ref<MediaCapabilitiesAPI::MediaCapabilities> WorkerNavigator::media_capabili
return *m_media_capabilities;
}
GC::Ref<ServiceWorkerContainer> WorkerNavigator::service_worker()
GC::Ref<ServiceWorker::ServiceWorkerContainer> WorkerNavigator::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;
}