extension
extension copied to clipboard
Refactor content script injection
Closes #2833
Remove the build time window provider injection because CSP can't be loosened.
Should this change to be bound to SUPPORT_MANIFEST_V3 feature flag @greg-nagy?
Should this change to be bound to
SUPPORT_MANIFEST_V3feature flag @greg-nagy?
💯
Yes it should be
In addition to manifest v3 not being top of mind right now, it's not entirely clear to me why this wouldn't trigger the issues we originally inlined the script to avoid (https://github.com/tahowallet/extension/issues/1117). Indeed, the original approach to this injection was a script src and we moved away from it (reasoning less clear, https://github.com/tahowallet/extension/commit/61b7f0350d2f994b982b3c2c5cba68b2a7974a8d ).
Going to close this for now alongside other manifest v3 work, but if and when we circle back we'll want to make sure we're not reintroducing a bug we had previously fixed.