-
Notifications
You must be signed in to change notification settings - Fork 4
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 v3 #4
Conversation
@NyanKiyoshi here is the PR, as promised :) Do you think you could give it a try also on Chrome to see how things work there? |
@dmlls that seems tricky to implement proper manifest v3 support. The first issue is The second is permissions: The manifest changes required: Patch Filediff --git a/manifest.json b/manifest.json
index facdcb3..83d7c0d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -20,8 +20,7 @@
},
"permissions": [
- "webRequest",
- "webRequestBlocking",
+ "declarativeNetRequest",
"activeTab"
],
@@ -363,8 +362,6 @@
],
"background": {
- "scripts": [
- "background.js"
- ]
+ "service_worker": "background.js"
}
} On the compatibility matrix I do not see any support for rules in Firefox thus it may not work: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest#browser_compatibility. I do not personally see a way to re-implement |
Hi @NyanKiyoshi, thanks a lot for the detailed feedback! 💯 I see things are not looking all that great... I'll take a close look during the next week and see what we can do, but yeah, hope there's a solution that doesn't involve any ugly workarounds, as you mentioned. |
@NyanKiyoshi So actually the As for the |
As discussed in #3, this PR implements the necessary changes to comply with Manifest V3, following the Firefox Manifest V3 migration guide.