commit | d8e49fe9a8374c236010d75874c082e9701543fb | [log] [tgz] |
---|---|---|
author | Ehsan Karamad <ekaramad@chromium.org> | Wed May 23 22:17:58 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed May 23 22:17:58 2018 |
tree | 426130788c03affd6e09e1ccc396dc07300e1354 | |
parent | 801b2e7c907cef13941db6d268b9b8519d52d9d8 [diff] |
Implement policy: 'document-stream-insertion' This CL adds the actual implementation for the experimental policy 'document-stream-insertion'. The policy is used to block usages of specific APIs mentioned section "dynamic markup insertion" of the HTML spec. This essentially includes document.{close, open, write, writeln}. With the current CL, the calls to banned API lead to a DOMException. The feature itself was introduced in a previous CL: https://chromium-review.googlesource.com/c/chromium/src/+/1053349 Bug: 841605 Change-Id: I1a764bc7545a0d26a29d217027cf43e561d8dfbd Reviewed-on: https://chromium-review.googlesource.com/1058138 Commit-Queue: Ehsan Karamad <ekaramad@chromium.org> Reviewed-by: Ian Clelland <iclelland@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#561275}
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 .