consider supporting moz-extension:// service workers
Categories
(WebExtensions :: Request Handling, defect, P3)
Tracking
(Not tracked)
People
(Reporter: mossroy, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
747 bytes,
application/gzip
|
Details |
Comment 1•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Comment 8•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
I'm glad to see that bug 1231208 (service worker e10s redesign) has made some progress, which gives hope for this one to be implemented at some point.
I just wanted to say that we're still highly interested in this improvement, for our extension to work as well on Firefox as on Chromium-based browsers.
Comment 10•4 years ago
•
|
||
Another use case for service workers in the extension context is using the Web Push API which is only available in service workers.
Comment 11•4 years ago
|
||
I would like to put a request for update on this ticket. The Kiwix Wikipedia Offline reader extension still maintains with big effort the support for Firefox via a JQuery based/DOM manipulation hack... but this is really expensive and situation is getting worse over time. Do we have any chance to see this ticket implemented anytime in a similar manner like it works on Chrome?
Comment 12•3 years ago
|
||
I'm interested in this as well, for a similar reason: viewing inter-linked web pages offline.
The webRequest API does not look like it supports completely supplanting a request like the service worker fetch event listener can - even if you use the filter content API, Firefox will still fetch the original page, so it won't be able to work offline. Redirecting means breaking links, and even if it didn't, bug #707624 means you can't redirect to data: pages anyway.
I find it frustrating that progressive web apps, something that can be installed simply by visiting a page, have better support for intercepting requests than extensions, which require signing and manual installation.
Reporter | ||
Comment 14•3 years ago
|
||
For information, it was becoming too much of a problem for us not to have ServiceWorkers available in our Kiwix offline Firefox extension.
So we implemented a kind of workaround: switch to a PWA version (where ServiceWorkers are fully available).
It's not satisfactory at all, because it means the extension is not 100% offline any more: the user needs a first-time Internet access before being able to use the extension offline. It prevents its usage in some cases (extension manually installed with the .xpi file, in a fully offline scenario)
It was not easy to implement properly (see the size of the PR: https://github.com/kiwix/kiwix-js/pull/771), and forces us to deploy/maintain the PWA too, but at least we can move on and use the same codebase for all recent browsers.
We're still hoping this will eventually be implemented for Firefox. When it will be, our extension should be able to make use of it (we switch to the PWA only if SW registration fails)
Updated•2 years ago
|
Description
•