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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-allowed.html

Issue 2020223002: Refactor nonce support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inline
Patch Set: Rebase. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-allowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-allowed.html
deleted file mode 100644
index abeda9d72ea9e940f623635490f647f2f125fbd5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-allowed.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Security-Policy" content="style-src 'nonce-noncynonce' 'nonce-noncy+/=nonce'">
- <script src="/js-test-resources/js-test.js"></script>
- <style nonce="noncynonce">
- #test1 {
- color: green;
- }
- </style>
- <style>
- #test1 {
- color: red;
- }
- </style>
- <style nonce="noncynonce">
- #test2 {
- color: green;
- }
- </style>
- </head>
- <body>
- <p id="test1">This text should be green.</p>
- <p id="test2">This text should also be green.</p>
- <script>
- description("Style correctly whitelisted via a 'nonce-*' expression in 'style-src' should be applied to the page.");
- var el = document.querySelector('#test1');
- shouldBeEqualToString("window.getComputedStyle(el).color", "rgb(0, 128, 0)");
- var el = document.querySelector('#test2');
- shouldBeEqualToString("window.getComputedStyle(el).color", "rgb(0, 128, 0)");
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698