upgrade manifest-v3 for chrome #181
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Issue180
Update Manifest File
manifest.json
to follow the MV3 format.Address MV3-Specific Changes
public/external-script.js
to replace inline scripts, ensuring compliance with Content Security Policy (CSP).Problem description
Warning Message
The Chrome Web Store displays a warning indicating that the extension does not align with the "best practices for Chrome extensions" because it is still using Manifest Version 2.
MV2 Deprecation Timeline
Google has officially announced the deprecation of Manifest Version 2, and starting in 2024, support for extensions using MV2 will be discontinued.
CSP Restrictions
Due to restrictions imposed by Content Security Policy (CSP), the execution of inline scripts is blocked.
external-script.js
, that is now referenced externally.Impact on the Project
If this extension is not updated to Manifest Version 3, it may cease to function properly in the near future.
Pros/cons of approach implemented
[Pros]
window.postMessage
, is extracted into reusable functions, following the DRY principle.[Cons]
Checklist
Code Review Guidelines for Reviewers