Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to manifest version 3 #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

SamMrach
Copy link

#1
i migrated to mv3 and added an offscreen script to be able to play audio, because as you know it's not possible to play or capture media in service workers.

@SamMrach
Copy link
Author

SamMrach commented Aug 15, 2023

@Tsu-HaoLiu Actually Firefox support mv3 but support for background.Service_Worker is disabled. that's why i am getting this error.
check this :
mozilla/web-ext#2532

@Tsu-HaoLiu
Copy link
Owner

Ah ok, is there a way we can update the manifest to have it work with both firefox and chrome? Are you able to do some testing to see if any of the solutions mentioned in your link works?

@SamMrach
Copy link
Author

@Tsu-HaoLiu unfortunately there is no way to make it work with service workers in firefox. the issue is closed without been resolved.

@GleammerRay
Copy link

Hello @SamMrach ! Have you tried using background scripts/pages on Firefox instead of service workers? - https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background.

It is usually not too difficult to migrate between the two. Do note that you will have to keep the background scripts/pages specific to your Firefox builds as Chrome/Chromium does not support background scripts/pages and instead prefers service workers.

Repository owner deleted a comment from Newcool1230 Aug 30, 2023
Repository owner deleted a comment from Newcool1230 Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants