Uh oh!
There was an error while loading. Please reload this page.
#1509 Migrate to Manifest V3 - #5607
Conversation
Uh oh!
There was an error while loading. Please reload this page.
sosnovsky
commented
Feb 19, 2024
@ioanmo226 here is my current changes for manifest v3 migration, you can continue working on this code, feel free to ask questions:
Per updated Google timeline - in June 2024 they'll start disabling manifest v2 extensions in pre-release versions of Chrome, so by that time we should have finished and tested migration to manifest v3. If some functionality can't be fully migrated to manifest v3 - we can simplify it for now and work on full functionality later. Google regularly adds new features to manifest v3, maybe some new feature will be helpful for us and make implementation easier. P.S. Also Firefox has a different implementation for manifest v3 - https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/. They continue support background pages, but they are non-persistent in manifest v3, need to adapt code for them too. |
@sosnovsky Thank you for your detailed response and code update. I have now finished checking your code and manfest v3 update guide. Could you list TODO list (to update to v3) you had in mind? It would help me complete task faster. PS: I lost 2FA code for my previuos github account and submitted recovery action. Might be recovered in 1-2 days. |
sosnovsky
commented
Feb 21, 2024
For now we should start with these issues, as implementing them will make possible to run UI tests which will show broken functionality, and then it'll be easier to understand what needs to be fixed:
Initially I thought it'll be possible to create manifest v2 and v3 builds from the same codebase, then we could merge manifest v3 changes to |
sosnovsky
commented
Feb 23, 2024
It probably doesn't work, as I've tested only already configured extension and didn't go through setup process.
Yes, it's my latest changes, probably one of my last changes broke compose button insert even on the first load :) |
sosnovsky
commented
Feb 23, 2024
Feel free to message me if you'll have any questions about manifest v3 migration, as it's quite complicated issue and probably second opinion will be useful for making some implementation decisions. |
sosnovsky
commented
Feb 23, 2024
I meant |
sosnovsky
commented
Feb 26, 2024
Yes, we'll need to use By the way, when working on manifest v3 update I found tool for testing extension update - https://github.com/GoogleChromeLabs/extension-update-testing-tool. It'll show how update to the new version will look for users, so you can check if any additional permission alerts will be shown (we should try to migrate without such additional alerts, as some users can decline them and then some functionality will be broken))
I commented initial logic and temporary replaced it with |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sosnovsky
commented
Mar 6, 2024
From mentioned options I would prefer using webpack, as we already use it for packing But probably it's possible to just remove |
sosnovsky
commented
Mar 7, 2024
Yeah, looks like it won't be easy to remove |
sosnovsky
commented
Mar 8, 2024
Ok, let's go with webpack solution for now |
sosnovsky
commented
Mar 11, 2024
It seems flowcrypt-browser/scripts/build.sh Line 124 in 2bbe516 |
sosnovsky
commented
Mar 12, 2024
For sure, I'll check it later today or tomorrow |
sosnovsky
commented
Mar 14, 2024
Yes, I'm checking it - tried to build without webpack and noticed that ![]() |
Yeah, you're right, after removing this comment |
sosnovsky
commented
Mar 15, 2024
For me it doesn't work - Does it work for you? |
sosnovsky
commented
Mar 18, 2024
@ioanmo226 did you try to use offscreen document for fixing |
Uh oh!
There was an error while loading. Please reload this page.


This PR migrates extension code to Manifest V3
close#1509
Tests(delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):