-
Notifications
You must be signed in to change notification settings - Fork 22
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
#2946 Error thrown on Custom form submit #3019
Conversation
@fregante do you know if there's anyway we can apply the relaxed CSP only to the form page? Maybe not possible in MV2?: https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/#content-security-policy Even in MV3 the only contexts are sandbox vs. extension_pages? I'd like to avoid relaxing the CSP for all extension pages if possible |
It looks like there's no way to relax the CSP on the ephemeralForm.html using meta tags: https://stackoverflow.com/questions/34131814/how-to-relax-content-security-policy-with-meta-tag However, we could use meta tags to tighten the script CSP on all the other pages?
@fregante thoughts? |
I don't know how missed my previous @mention! I think you're right about this, the problem though is that:
I find it quite limiting that ajv isn't able to do this without resorting to I suppose for now we can merge this and open another ticket to keep track of possible better solutions. |
I don't think it does? Otherwise we would have seen this error back when forms were being executed in the content script
Technically the don't use eval, they use function constructor. Same issues, though. It's not clear what Chrome's MV3 stance will be toward eval for AJV and Nunjucks. (Since it will be decided at CWS submission review time) Our options:
Short-term, I'm OK merging this PR to bring back support for form validation
I created a ticket here |
Closes #2946