commit | af00b29ef10cda1bec17f975930ac23de6375da9 | [log] [tgz] |
---|---|---|
author | Momoko Sumida <momon@google.com> | Thu Aug 09 09:10:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 09 09:10:45 2018 |
tree | 586100dcf95d595c68566d7ac776b9c37edbe6b7 | |
parent | 9969398c03e8328120139aded02d6ff42269220f [diff] |
Delete constructor for creating empty CSSStyleSheets Currently, empty CSSStyleSheets can be constructed either with a constructor or with Document.createEmptyCSSStyleSheet. This CL deletes the constructor so that they can only be produced by Document.createEmptyCSSStyleSheet. Document.createEmptyCSSStyleSheet is considered to be more desirable, as CSSStyleSheets produced by Document.createEmptyCSSStyleSheet can be tied to documents in the future. This means that their use can be limited in the documents where they were produced, resulting in higher security. Note: The constructed CSSStyleSheet is not currently tied to the Document yet Link to related comments in discussion: https://github.com/WICG/construct-stylesheets/issues/23#issuecomment-379180786 https://github.com/WICG/construct-stylesheets/issues/15#issuecomment-391216056 Bug: 807560 Change-Id: I767e15e83e1f31eb278bc81233c8b579d0f511c7 Reviewed-on: https://chromium-review.googlesource.com/1164876 Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Commit-Queue: Momoko Sumida <momon@google.com> Cr-Commit-Position: refs/heads/master@{#581836}
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 .