Chromium Code Reviews

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/cssom/cssstylesheet-insertrule-blocked.html

Issue 169303003: CSP 1.1: Revert CSSOM changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <meta http-equiv="Content-Security-Policy" content="style-src 'unsafe-inline ' 'self'">
6 <style></style>
7 </head>
8 <body>
9 <script>
10 description("CSSStyleSheet::insertRule blocked if 'unsafe-eval' is not a n allowed source of style.");
11 shouldThrow("document.styleSheets[0].insertRule('x { display: none; }', 0);");
12 </script>
13 </body>
14 </html>
OLDNEW

Powered by Google App Engine