Closed Bug 1502370 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 13735 - Ensure eval flag is properly transfered to context from CSPRO

Categories

(Core :: DOM: Security, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

Sync web-platform-tests PR 13735 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/13735
Details from upstream follow.

Andy Paicu <andypaicu@chromium.org> wrote:
>  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/1301439
>  WPT-Export-Revision: 22cfba425e8467eea6da97f035c022a40d05bc01
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Ran 3 tests and 5 subtests
OK     : 3
PASS   : 5
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6547d97535b1
[wpt PR 13735] - Ensure eval flag is properly transfered to context from CSPRO, a=testonly
https://hg.mozilla.org/mozilla-central/rev/6547d97535b1
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.