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

update the extension to support manifest version 3 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Scruffy21
Copy link

Fixes issue #28

I've done an update to mv3. It mostly consists of saving the 'state' variable in the extension's storage now. That's because service workers get shut down and their variables are reset. I have also removed 'webRequestBlocking' permission and its "blocking" related functionality in the webRequest in the background, because this is no longer avaialble in mv3. I don't know what the consequences will be for removing the "blocking" bit from the background. So far it seems to work fine.

@arikw
Copy link
Owner

arikw commented Dec 8, 2024

Thank you so much for your contribution.
If I remember correctly, the webRequestBlocking is to handle "http://reload.extensions" which should trigger the extensions reload without actually trying to browse to that url

@Scruffy21
Copy link
Author

When using the old mv2 version, if I open a new tab and enter http://reload.extensions/, I get the page saying 'This page has been blocked by an extension', so it looks like there is attempted navigation.

The same behavior seems to happen when I use my mv3 version.

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.

2 participants