-
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
CSP error from Page Editor analysis rule in MV3 #7265
Comments
@grahamlangford I think this PR was supposed to fix this issue? Or is it something else?
Yes it's possible to add a sandbox iframe anywhere (except the MV3 background worker) and it's preferred. |
This is something else. It's a use on Nunjucks in the analysis:
The analysis is instantiating the template to determine whether or not it's a valid template |
@grahamlangford I'd recommend bumping this up as it's a blockers to me using the MV3 build as my daily driver |
Source of the error:
|
I opened a PR but this requires larger changes that need to be discussed first ( |
I would think we'd want to avoid changing the color of the visitExpression method because that will result in every visitor method needing to be async. This is what we've done for others:
|
It's already similar to that but the annotation is not added. What am I doing wrong? The "add annotation" method is called in the async .catch callback but I only see my own logging, not the annotation |
You're missing the The analysis results go into redux. Changes to the analysis annotation after the fact won't flow through because the Redux state is an immutable copy of the results |
Oh yes I remember seeing this being implemented a while ago actually. I'll give it a try |
--------- Co-authored-by: Todd Schiller <todd.schiller@gmail.com>
Describe the bug
The TemplateAnalysis Page Editor analysis rule uses
new Template
which calls eval under the hoodTo Reproduce
Actual behavior
Error shown due to the invalid template
Discussion
We may need to add a sandbox to the devtools to be able to compile the template (preferred?). Or will need to message the content script which then messages its sandbox
Expected behavior
No error
Additional context
The text was updated successfully, but these errors were encountered: