Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Manifest v3 #171

Open
samhh opened this issue Sep 26, 2022 · 5 comments
Open

Manifest v3 #171

samhh opened this issue Sep 26, 2022 · 5 comments

Comments

@samhh
Copy link
Owner

samhh commented Sep 26, 2022

It looks like this will stop working in Chromium-based browsers in January 2023 as v2 support is dropped.

@samhh samhh pinned this issue Sep 26, 2022
@paulie-g
Copy link

paulie-g commented Sep 29, 2022

Any chance you could fix this? I haven't looked at the v3 changes in detail in terms of how hard it would be, but the APIs that they're intending to break permanently ought not affect Bukubrow, surely? All Bukubrow does is grab the page url and title, that should still be available in some form. Or are they killing the native host interface?

@samhh
Copy link
Owner Author

samhh commented Oct 5, 2022

The background page might need some attention as the APIs look to have changed a bit there.

I haven't used the extension for a while and I've got a lot of offline stuff going on so I'm not sure I'll get around to looking at this by then. PRs are welcome.

@samhh
Copy link
Owner Author

samhh commented Dec 10, 2022

@LeXofLeviafan
Copy link

It appears that Firefox added support for V3 recently.

The background page might need some attention as the APIs look to have changed a bit there.

The background pages/scripts are getting replaced with non-persistent service workers… Problem is, service_worker is apparently not supported by Firefox (according to dev blog they're using "event pages" instead, with intention of adding service worker support eventually… I wonder if it will be possible to use the same script/manifest in both Chrome & Firefox 🤔)

@LeXofLeviafan
Copy link

I wonder if it will be possible to use the same script/manifest in both Chrome & Firefox

…Alright, no, it's not possible: Chrome rejects V3 extensions with background.scripts or background.persistent in their manifest (the latter isn't allowed by Firefox either, along with background.service_worker). You'll need separate manifest files for Chrome and Firefox.

Other changes to take note of:

  • browser_action in manifest & browserAction in the code need to be renamed to action
  • similarly, applications in manifest need to be renamed to browser_specific_settings
  • tabs.executeScript gets replaced by a much more restricted scripting.executeScript (so much so that it's likely going to limit bookmarklets support severely)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants