ladybird/Libraries/LibWeb/ServiceWorker
Andreas Kling 1835d739f5 LibWeb: Implement ServiceWorkerContainer getRegistrations
Expose ServiceWorkerContainer.getRegistrations() and implement the
Service Workers algorithm for collecting registrations matching the
current client's storage key. Resolve the promise with a frozen array
of ServiceWorkerRegistration objects, matching the Web-exposed return
type.

Use OrderedHashMap for the temporary LibWeb registration map, since the
Service Workers spec defines the registration map as ordered and
getRegistrations() exposes that iteration order.

Add text coverage for the no-registration case used by TradingView's
startup path. Without this method, the page threw while calling
navigator.serviceWorker.getRegistrations() and aborted before rendering
its chart.
2026-05-23 19:11:01 +02:00
..
Cache.cpp LibWeb: Unify WebIDL C++ type generation 2026-05-23 18:26:12 +02:00
Cache.h LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
Cache.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00
CacheStorage.cpp LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
CacheStorage.h LibWeb/Bindings: Generate struct definitions from IDL dictionaries 2026-05-09 10:49:49 +02:00
CacheStorage.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00
EventNames.cpp LibWeb/ServiceWorker: Add ServiceWorker event names 2025-04-25 11:02:53 +02:00
EventNames.h LibWeb/ServiceWorker: Add ServiceWorker event names 2025-04-25 11:02:53 +02:00
Job.cpp LibGC: Default-construct RootVector from the global heap 2026-05-20 20:37:55 +02:00
Job.h LibWeb/Bindings: Emit one bindings header and cpp per IDL 2026-04-21 07:36:13 +02:00
NameToCacheMap.cpp LibWeb: Implement CacheStorage.open 2026-04-03 11:04:12 +02:00
NameToCacheMap.h LibWeb: Implement CacheStorage.open 2026-04-03 11:04:12 +02:00
Registration.cpp LibWeb: Implement ServiceWorkerContainer getRegistrations 2026-05-23 19:11:01 +02:00
Registration.h LibWeb: Implement ServiceWorkerContainer getRegistrations 2026-05-23 19:11:01 +02:00
ServiceWorker.cpp LibGC: Enforce that a Cell type must declare the allocator to use 2026-01-20 12:00:11 +01:00
ServiceWorker.h LibWeb/Bindings: Emit one bindings header and cpp per IDL 2026-04-21 07:36:13 +02:00
ServiceWorker.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00
ServiceWorkerContainer.cpp LibWeb: Implement ServiceWorkerContainer getRegistrations 2026-05-23 19:11:01 +02:00
ServiceWorkerContainer.h LibWeb: Implement ServiceWorkerContainer getRegistrations 2026-05-23 19:11:01 +02:00
ServiceWorkerContainer.idl LibWeb: Implement ServiceWorkerContainer getRegistrations 2026-05-23 19:11:01 +02:00
ServiceWorkerGlobalScope.cpp LibWeb: Remove now-unused Resource and ResourceClient 2025-11-05 18:27:36 +01:00
ServiceWorkerGlobalScope.h LibWeb: Add initial CookieStore support 2025-08-08 13:09:58 -04:00
ServiceWorkerGlobalScope.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00
ServiceWorkerRecord.cpp Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
ServiceWorkerRecord.h LibWeb/Bindings: Emit one bindings header and cpp per IDL 2026-04-21 07:36:13 +02:00
ServiceWorkerRegistration.cpp LibWeb/Bindings: Emit one bindings header and cpp per IDL 2026-04-21 07:36:13 +02:00
ServiceWorkerRegistration.h LibWeb: Implement nagivator.serviceWorker.getRegistration() 2025-01-30 15:18:43 -07:00
ServiceWorkerRegistration.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00