[Trusted Types] Fix "sink" name for Function constructor.
Fix-it week: Fix the "sink" name for Function constructors. The original implementation tried to keep it simple and disambiguated between "eval" and "Function" only when the value was available. That wasn't quite sufficient, so now we pass in the value whenever we determine the sink for script values. (This follows the spec, as linked in the issue.) Bug: 1153054 Change-Id: Ie53f9ee30428b6c94140cabf87d7027367b055a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584024 Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by:Yifan Luo <lyf@chromium.org> Cr-Commit-Position: refs/heads/master@{#835732}
Showing
Please register or sign in to comment