Firefox: Service Worker: SecurityError: DOMException: The Operation is insecure
Did you check the cookie setting in about:preferences#privacy, it must be ‘keep until they expire’, if you have ‘keep until I close firefox’ selected sw will not register. you can find details on this thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1429714