Because of a technical limitation, navigator.serviceWorker was previously exposed on insecure contexts and threw a Security Error when used. After this change, navigator.serviceWorker will return undefined. This aligns with the specification.
Docs: https://w3c.github.io/webappsec-secure-contexts/#secure-contexts