You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
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.
Activity
fregante commentedon Mar 22, 2022
A few things keeping us from updating:
optional_permissions:optional_host_permissionsw3c/webextensions#119Katsute commentedon May 11, 2022
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.
fregante commentedon May 12, 2022
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.
FloEdelmann commentedon May 19, 2022
FYI: https://blog.mozilla.org/addons/2022/05/18/manifest-v3-in-firefox-recap-next-steps/ and https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/
fregante commentedon May 20, 2022
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.
fregante commentedon Sep 30, 2022
fregante commentedon May 31, 2023
I somehow missed this!
delucis commentedon May 31, 2023
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.
fregante commentedon May 31, 2023
Thanks for the comment!
We could have done that years ago but avoided the complexity of 2 builds.
Ugh, that's right, so we'll keep waiting:
fregante commentedon May 31, 2023
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
scriptandservice_workerThe issue is that Chrome is currently rejecting the
scriptproperty 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.scriptbefore 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.FloEdelmann commentedon May 31, 2023
At least I am 😉
Upvote this comment if you are, too.
fregante commentedon May 31, 2023
@FloEdelmann time to switch to Edge then 😃
delucis commentedon May 31, 2023
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.
markphip commentedon Sep 18, 2023
fregante commentedon Sep 18, 2023
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.
markphip commentedon Sep 18, 2023
fregante commentedon Sep 18, 2023
jerone commentedon Jun 22, 2024
In Firefox (127.0.1), the RGH options page moved in the latest update.

Is that an consequence of Manifest V3?
Also changelog is not visible.
jerone commentedon Jun 22, 2024
Ah, nvm; #7465