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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt

Issue 811703006: Added more useful message error message for plugin-types CSP directive. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: plugin-types error msg improvement Created 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt
index 9553a75fedb3595dd1cbe8fc42ecfbb6850e96c2..d9404232e691c35c3fd61e77c8ecec686f8c4881 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt
@@ -6,6 +6,10 @@ CONSOLE ERROR: 'plugin-types' Content Security Policy directive is empty; all pl
CONSOLE ERROR: Refused to load 'data:application/x-webkit-test-netscape,logifloaded' (MIME type 'application/x-webkit-test-netscape') because it violates the following Content Security Policy Directive: 'plugin-types '.
+CONSOLE ERROR: Invalid plugin type in 'plugin-types' Content Security Policy directive: ''none''. Did you mean to set the object-src directive to 'none'?
Mike West 2015/01/13 06:55:08 The double ' is a little weird, but whatever. I do
+
+CONSOLE ERROR: Refused to load 'data:application/x-webkit-test-netscape,logifloaded' (MIME type 'application/x-webkit-test-netscape') because it violates the following Content Security Policy Directive: 'plugin-types 'none''.
+
CONSOLE ERROR: Invalid plugin type in 'plugin-types' Content Security Policy directive: 'text'.
CONSOLE ERROR: Refused to load 'data:application/x-webkit-test-netscape,logifloaded' (MIME type 'application/x-webkit-test-netscape') because it violates the following Content Security Policy Directive: 'plugin-types text'.
@@ -70,6 +74,11 @@ Frame: '<!--framePath //<!--frame6-->-->'
--------
Frame: '<!--framePath //<!--frame7-->-->'
--------
+
+
+--------
+Frame: '<!--framePath //<!--frame8-->-->'
+--------
PASS.

Powered by Google App Engine
This is Rietveld 408576698