Extension will stop working if not migrated to manifest V3
Source: https://developer.chrome.com/blog/more-mv2-transition/
Issues found so far
- content script JS does not live in the same world as the page JS
=> prevent accessing monaco editor API, we can't register new themes, nor change the current theme.
- Solution to first issue is to use a background script to inject code in the MAIN world.
=> this work, with the following limitations: the script must be self-contained (no function call outside the injected scope)
- Injected script can not insertHTML from a string, so innerHTML does not work.
=> This prevent to inject the whole script to avoid scope issues.
Extension will stop working if not migrated to manifest V3
Source: https://developer.chrome.com/blog/more-mv2-transition/
Issues found so far
=> prevent accessing monaco editor API, we can't register new themes, nor change the current theme.
=> this work, with the following limitations: the script must be self-contained (no function call outside the injected scope)
=> This prevent to inject the whole script to avoid scope issues.