-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mediapipe No Longer Compatible With Chrome Extensions #4028
Comments
Hello @nskaiser |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
A quick patch has been released for all utilities modules:
As well as the following JS solutions:
Hopefully this can address your issue; please let us know if that's not the case! Note that we were not yet able to update the remaining two JS solutions, so these will continue to have this issue:
|
Closing as stale. Please reopen if you'd like to work on this further. |
Hello,
We are unable to submit Chrome Extensions that use Mediapipe due to the new Manifest V3 requirement.
In manifest v3 the script-src directive in content_security_policy.extension_pages does not allow the use of "unsafe-eval" as mentioned here - https://developer.chrome.com/docs/extensions/mv3/mv3-migration/#content-security-policy
If "unsafe-eval" can't be specified for script-src then methods like eval() or Function(), which create functions from strings, are blocked as described here - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src#unsafe_eval_expressions
When we load https://cdn.jsdelivr.net/npm/@mediapipe/holistic/holistic_solution_wasm_bin.js there is a function called createNamedFunction() which uses new Function() to create functions by given name and body. Since "unself-eval" can't be specified for script-src directive then this method is blocked and an error is thrown.
I have spoken to the Google Chrome Store team and they will not make any exceptions to the Manifest V3 requirement.
Is this something that can be quickly addressed?
The text was updated successfully, but these errors were encountered: