Ensure eval flag is properly transfered to context from CSPRO
When setting the eval flag for a worker context, report only policies were treated as enforcing. Because AllowEval with supress reporting does not take into account the ReportOnly state of the policy because it calls CheckEval directly. AllowEval: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/frame/csp/content_security_policy.cc?g=0&l=603 CheckEval is called here: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/frame/csp/csp_directive_list.cc?g=0&l=712 Bug: 777076 Change-Id: I80994553037d29c9301aff1ea845386c776c6837 Reviewed-on: https://chromium-review.googlesource.com/c/1301439 Commit-Queue: Andy Paicu <andypaicu@chromium.org> Reviewed-by:Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#605289}
Showing
Please register or sign in to comment