Trusted Types: First stab at TrustedScriptURL.
koto@ added [`TrustedScriptURL`][1] to the explainer as a mechanism to distinguish URLs that directly lead to script execution (e.g. via assignment to `<script>`'s `src` attribute). This patch is a first pass at an implementation, along with restrictions on `script.src` so we can test it out. [1]: https://github.com/mikewest/trusted-types/commit/834163e519b579e5566908cafcedb2efe24be6da Bug: 739170 Change-Id: Ie784ff3992dbcf750521fd55710befe3ed26036c Reviewed-on: https://chromium-review.googlesource.com/677390 Commit-Queue: Mike West <mkwst@chromium.org> Reviewed-by:Yoav Weiss <yoav@yoav.ws> Cr-Commit-Position: refs/heads/master@{#504306}
Showing
Please register or sign in to comment