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. |
||
|---|---|---|
| .. | ||
| service-worker-get-registrations.txt | ||
| service-worker-ready.txt | ||
| service-worker-register.txt | ||