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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/stacktraces/csp-inline-warning-contains-stacktrace-expected.txt

Issue 1984483002: [DevTools] Capture call stacks for CSP console messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests Created 4 years, 7 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
1 CONSOLE ERROR: Refused to execute inline script because it violates the followin g Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inl ine' keyword, a hash ('sha256-HrJuWKcugzFU0cfwpneJtqIgGmzTNONbCyuhI6DsQp8='), or a nonce ('nonce-...') is required to enable inline execution. 1 CONSOLE ERROR: line 4: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'un safe-inline' keyword, a hash ('sha256-HrJuWKcugzFU0cfwpneJtqIgGmzTNONbCyuhI6DsQp 8='), or a nonce ('nonce-...') is required to enable inline execution.
2 2
3 This test injects an inline script from JavaScript. The resulting console error should contain a stack trace. 3 This test injects an inline script from JavaScript. The resulting console error should contain a stack trace.
4 4
5 Message[0]: csp-inline-test.js:4 Refused to execute inline script because it vio lates the following Content Security Policy directive: "script-src 'self'". Eith er the 'unsafe-inline' keyword, a hash ('sha256-HrJuWKcugzFU0cfwpneJtqIgGmzTNONb CyuhI6DsQp8='), or a nonce ('nonce-...') is required to enable inline execution. 5 Message[0]: csp-inline-test.js:4 Refused to execute inline script because it vio lates the following Content Security Policy directive: "script-src 'self'". Eith er the 'unsafe-inline' keyword, a hash ('sha256-HrJuWKcugzFU0cfwpneJtqIgGmzTNONb CyuhI6DsQp8='), or a nonce ('nonce-...') is required to enable inline execution.
6 6
7 Stack Trace: 7 Stack Trace:
8 8
9 url: http://127.0.0.1:8000/inspector/stacktraces/resources/csp-inline-test.j s 9 url: http://127.0.0.1:8000/inspector/stacktraces/resources/csp-inline-test.j s
10 function: thisTest 10 function: thisTest
11 line: 4 11 line: 4
12 12
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698