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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-allowed-expected.txt

Issue 137233005: CSP: Improve blocked inline script error message. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Yay. Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 CONSOLE ERROR: Refused to apply inline style because it violates the following C ontent Security Policy directive: "style-src 'nonce-noncynonce' 'nonce-noncy+/=n once'". 1 CONSOLE ERROR: Refused to apply inline style because it violates the following C ontent Security Policy directive: "style-src 'nonce-noncynonce' 'nonce-noncy+/=n once'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce (' nonce-...') is required to enable inline execution.
2 2
3 CONSOLE ERROR: line 11: Refused to apply inline style because it violates the fo llowing Content Security Policy directive: "style-src 'nonce-noncynonce' 'nonce- noncy+/=nonce'". 3 CONSOLE ERROR: line 11: Refused to apply inline style because it violates the fo llowing Content Security Policy directive: "style-src 'nonce-noncynonce' 'nonce- noncy+/=nonce'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.
4 4
5 Style correctly whitelisted via a 'nonce-*' expression in 'style-src' should be applied to the page. 5 Style correctly whitelisted via a 'nonce-*' expression in 'style-src' should be applied to the page.
6 6
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
8 8
9 9
10 PASS window.getComputedStyle(el).color is "rgb(0, 128, 0)" 10 PASS window.getComputedStyle(el).color is "rgb(0, 128, 0)"
11 PASS window.getComputedStyle(el).color is "rgb(0, 128, 0)" 11 PASS window.getComputedStyle(el).color is "rgb(0, 128, 0)"
12 PASS successfullyParsed is true 12 PASS successfullyParsed is true
13 13
14 TEST COMPLETE 14 TEST COMPLETE
15 This text should be green. 15 This text should be green.
16 16
17 This text should also be green. 17 This text should also be green.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698