[Trusted Types] Add Console warning for (some) TT-related failures
The Function constructor is defined in terms of string operations, and will thus string-ify its arguments before constructing the actual function. TrustedScript instances passed into the Function constructor will thus work as specified, but not as expected, and their contents will still undergo the TT check. Fixing this requires ECMAScript changes in TC39, which are being considered, but not(yet?) approved. This adds a message to alert developers to this pitfall. See issue for details. Bug: 1087743 Change-Id: If414e6476bd778203e7f69f7d6a78019f26c5034 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2246149 Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by:Yifan Luo <lyf@chromium.org> Cr-Commit-Position: refs/heads/master@{#780370}
Showing
Please register or sign in to comment