Manifest v3 background scripts/service worker on Firefox

Just faced the same problem: Chrome is not happy with background.scripts and insists on using background.service_worker Firefox doesn’t support background.service_worker and wants background.scripts Manifest v3 is developed by Google, so looks like Firefox team haven’t fully implemented it yet. Firefox 109 is the first version to “support” manifest v3 (released on January 17). I was … Read more

Prevent Service Worker from automatically stopping

What you’re seeing is the expected behavior, and it’s not likely to change. Service workers intentionally have very short lifespans. They are “born” in response to a specific event (install, activate, message, fetch, push, etc.), perform their task, and then “die” shortly thereafter. The lifespan is normally long enough that multiple events might be handled … Read more

How to handle routing in Angular 5+ Service Workers?

TL;DR: I’ve identified at least two issues causing breakage in my case; you can use this build script for now to try my fix, and see the app work offline here. Further testing & pull requests needed. While I’ve been unable to find a documented answer, here’s what I’ve been able to find thus far, … Read more

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

Best practices for detecting offline state in a service worker

navigator.onLine and the related events can be useful when you want to update your UI to indicate that you’re offline and, for instance, only show content that exists in a cache. But I’d avoid writing service worker logic that relies on checking navigator.onLine. Instead, attempt to make a fetch() unconditionally, and if it fails, provide … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)