Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/cssom/cssmediarule-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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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>
7 @media all {
8 }
9 </style>
10 </head>
11 <body>
12 <script>
13 var rule = document.styleSheets[1].cssRules[0];
14 description("CSSStyleSheet::insertRule blocked if 'unsafe-eval' is not a n allowed source of style.");
15 shouldThrow("rule.insertRule('x { display: none; }', 0);");
16 </script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698