Migrating the Chrome extension to Firefox should be fairly easy to just make it work
Firefox doesn't support background.service_worker, we need to change it to background.scripts
Firefox doesn't support externally_connectable (I think we can safely delete it)
In background.ts we are retrieving 2 enums from chrome.declarativeNetRequest. This property doesn't seem to exist on Firefox and those 2 enums aren't defined so we need to define them manually
There seems to be a major delay between logging in and redirecting user back to the Zium's site (some permission issues?)
We need to extend the timeout much more for the getVersion function as it timed out too quickly
When I was using the development version I had to manually allow permissions to each of the sites' urls. Need to check if we can do it with some better UX
The whole app seems to be super laggy on Firefox 😕 Not sure what can we do about it
Warning
This is a potential blocker for the implementation of the Firefox extension. If the performance will continue to be subpar, then a Firefox extension won't be created
I've done some initial investigation:
background.service_worker
, we need to change it tobackground.scripts
externally_connectable
(I think we can safely delete it)background.ts
we are retrieving 2 enums fromchrome.declarativeNetRequest
. This property doesn't seem to exist on Firefox and those 2 enums aren't defined so we need to define them manuallygetVersion
function as it timed out too quickly