, is affected by this bug.
We provide a scripting API that allows our users to write their own scripts to extend the functionality of the extension.
One of the functions in this API allows to import JS module files (
documented here). This works in content scripts but it does not work in sandboxed pages due to the aforementioned bug. Therefore that specific function in the API will sometimes work and sometimes not work. It depends on whether the user chooses to run the script in a webpage or as a
background script.
On a related note, as the end of Manifest V2 approaches quickly, it looks like it won't be possible to run dynamic scripts at all by next year.
We asked about this in 2020 and it was said that Manifest V3 would allow this functionality, but unfortunately that never came to be true.
We've halted all efforts to innovate in this area as all indicates that we'll have to remove the entire scripting functionality from our extension.
Even if MV3 allowed dynamic scripts eventually, it'll be too late for a seemless transition from MV2 to MV3 as we require significant amount of beta-testing in order to ensure the reliability of the new functionality. This cannot be achieved in a couple of months.