commit | bfd0621af3f09557e9713d5c76108c7dddaa49a6 | [log] [tgz] |
---|---|---|
author | Stefano Sanfilippo <[email protected]> | Mon Nov 11 19:58:57 2019 |
committer | Commit Bot <[email protected]> | Mon Nov 11 19:58:57 2019 |
tree | 3b323b1bb7a870f658385a6aac353859b884c0f3 | |
parent | e7d02d4014e56d01235f1edd92869d50a0b8148b [diff] |
[Trusted Types] Support eval(TT) when TT Is enforced. Reintroduce the modifying hook with the new signature. Scripts are executed if both TT and CSP allow them, otherwise throw an EvalError and send reports as side-effects. Non-string, non-trusted values are passed through, and skip any TT default policy. eval(TT) still returns the object if TT enforcement is disabled, for now. This is because unconditional codegen from strings overrides our callback. Bug: 940927 Change-Id: I718694cc050cf071a2ccf9669543628cf568cbdc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768427 Commit-Queue: Stefano Sanfilippo <[email protected]> Reviewed-by: Mike West <[email protected]> Reviewed-by: Daniel Vogelheim <[email protected]> Cr-Commit-Position: refs/heads/master@{#714283}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .