mirror of https://github.com/gorhill/uBlock.git
Use 'wasm-unsafe-eval' instead of deprecated 'wasm-eval'
Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src#unsafe_webassembly_execution
This commit is contained in:
parent
2bbad0c692
commit
eb235404bd
|
@ -42,7 +42,7 @@ vAPI.cantWebsocket =
|
|||
vAPI.canWASM = vAPI.webextFlavor.soup.has('chromium') === false;
|
||||
if ( vAPI.canWASM === false ) {
|
||||
const csp = manifest.content_security_policy;
|
||||
vAPI.canWASM = csp !== undefined && csp.indexOf("'unsafe-eval'") !== -1;
|
||||
vAPI.canWASM = csp !== undefined && csp.indexOf("'wasm-unsafe-eval'") !== -1;
|
||||
}
|
||||
|
||||
vAPI.supportsUserStylesheets = vAPI.webextFlavor.soup.has('user_stylesheet');
|
||||
|
|
Loading…
Reference in New Issue