Skip to content

Migrating to Manifest V3 #5531

Closed
Closed

Description

@kidonng

Description

I don't think we mentioned this anywhere so here we are. Nothing to hurry, just in case we don't forget it.

Manifest V2 will be gone next year, and we don't want Refined GitHub to stop evolving and rot in GitHub updates.

Hope we are not going through the 2to3 pain again like last time the world upgrades a certain reptile

Screenshot

Example URL

The universe

Activity

  1. added
    meta
    on Mar 22, 2022
  2. fregante commented on Mar 22, 2022

    @fregante
    Member
  3. Katsute commented on May 11, 2022

    @Katsute
    Contributor

    If you want to preserve some compatibility between Chrome and Firefox you could have a post build script that modifies the manifest version and produces two distributions: one for Chrome and one for Firefox.

    https://github.com/Katsute/GitHub-Red-Issues/blob/3ff79d59722e1851508b5e6d87804a1d335de932/build.ts#L35-L45

    The optional perm issue might only be solvable with a separate GHE distribution that requires the perm if they don't add it to MV3.

  4. fregante commented on May 12, 2022

    @fregante
    Member

    I fully expect both issues to be resolved by January 2023, we really don't need to update now. If the deadline is near and issues persist, we'll figure something out then.

  5. FloEdelmann commented on May 19, 2022

    @FloEdelmann
    Member
  6. fregante commented on May 20, 2022

    @fregante
    Member

    Let's not waste time debugging their stuff just yet, we'll do it in 5-6 months. 👍

    Support for GHE is completely missing in Chrome MV3 so Firefox is not the only reason to wait.

  7. fregante commented on Sep 30, 2022

    @fregante
  8. self-assigned this
    on Jan 8, 2023
  9. removed their assignment
    on May 2, 2023
  10. fregante commented on May 31, 2023

    @fregante
    Member

    I somehow missed this!

    Manifest V3 became generally available in Firefox 109 (January 2023)

  11. added
    Please! ♥︎
    and removed
    Please! ♥︎
    on May 31, 2023
  12. delucis commented on May 31, 2023

    @delucis

    I was looking at this a couple of months ago and I think there's still some compatibility quirks: Chrome moved to service workers for persistent background scripts but Firefox haven't implemented that — https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/

    It may be possible to use the same script and switch the manifest config to use v3 in Chrome, v2 in Firefox though.

  13. fregante commented on May 31, 2023

    @fregante
    Member

    Thanks for the comment!

    switch the manifest config to use v3 in Chrome, v2 in Firefox

    We could have done that years ago but avoided the complexity of 2 builds.

    Chrome moved to service workers for persistent background scripts but Firefox haven't

    Ugh, that's right, so we'll keep waiting:

  14. fregante commented on May 31, 2023

    @fregante
    Member

    This might come a little earlier than expected IF Chrome manages to ship a schema change:

    In short we will be able to ship MV3 with a single manifest.json with script and service_worker

    • Firefox will continue using the current background script
    • Chrome and Safari use the worker, automatically.

    The issue is that Chrome is currently rejecting the script property entirely so we’re blocked until they allow it (which is planned/accepted, but not yet shipped):

    If that’s the only issue, I could probably migrate to MV3 but switch to background.script before publishing to AMO on CI. The only drawback is awkward local development in Firefox: it would require manual changes just to open in Firefox, but I don’t think we have many Firefox-based contributors.

  15. FloEdelmann commented on May 31, 2023

    @FloEdelmann
    Member

    I don’t think we have many Firefox-based contributors

    At least I am 😉
    Upvote this comment if you are, too.

  16. fregante commented on May 31, 2023

    @fregante
    Member

    @FloEdelmann time to switch to Edge then 😃

  17. delucis commented on May 31, 2023

    @delucis

    I have the inverse set-up on an extension I maintain and do this to convert my Manifest v2, Firefox-compatible config to a v3 Chrome manifest: https://github.com/delucis/github-to-linear/blob/12ce5ab43ea9d257cb04c3715d95a51551a30bf0/scripts/build.mjs#L11-L18

    So yeah, do-able but like you say makes local dev annoying for whichever browser you’re not defaulting to. That schema change would be super helpful, assuming FF isn’t implementing service workers any time soon.

  18. markphip commented on Sep 18, 2023

    @markphip
  19. fregante commented on Sep 18, 2023

    @fregante
    Member

    No. I don’t think there's a lot to do here, the dependencies should already be compatible. We're essentially waiting for Firefox to implement Service Workers, or for Chrome to not throw errors if it finds background.script in a MV3 manifest.

  20. markphip commented on Sep 18, 2023

    @markphip
  21. fregante commented on Sep 18, 2023

    @fregante
  22. self-assigned this
    on Jun 2, 2024
  23. jerone commented on Jun 22, 2024

    @jerone
    Contributor

    In Firefox (127.0.1), the RGH options page moved in the latest update.
    Is that an consequence of Manifest V3?
    image

    Also changelog is not visible.

  24. jerone commented on Jun 22, 2024

    @jerone
    Contributor

    In Firefox (127.0.1), the RGH options page moved in the latest update.

    Ah, nvm; #7465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

acceptedmeta

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions