Inject Metamask provider when CSP blocks the extension from adding inline script code. If no wallet provider is found on a Firefox browser, Metamask provider injection will be executed and initialized by ourselves. Since Metamask is the most used wallet extension, we can assume this will work on most cases.
Related Issue
738
Motivation and Context
Firefox blocks code injected by extensions when script-src CSP is enabled.
How Has This Been Tested?
Tested in preview build. Metamask Mobile app still doesn't work and need to be addressed separately.
Description
Inject Metamask provider when CSP blocks the extension from adding inline script code. If no wallet provider is found on a Firefox browser, Metamask provider injection will be executed and initialized by ourselves. Since Metamask is the most used wallet extension, we can assume this will work on most cases.
Related Issue
738
Motivation and Context
script-src
CSP is enabled.How Has This Been Tested?