| Index: Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| diff --git a/Source/core/frame/csp/ContentSecurityPolicy.cpp b/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| index 95e23db3167cc0faa62f7c2d8c9f89703e2477ff..646cfcbc97f3e4b82022999e7d530eb4b1d58c85 100644
|
| --- a/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| +++ b/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| @@ -792,6 +792,8 @@ void ContentSecurityPolicy::reportInvalidPluginTypes(const String& pluginType)
|
| String message;
|
| if (pluginType.isNull())
|
| message = "'plugin-types' Content Security Policy directive is empty; all plugins will be blocked.\n";
|
| + else if (pluginType == "'none'")
|
| + message = "Invalid plugin type in 'plugin-types' Content Security Policy directive: '" + pluginType + "'. Did you mean to set the object-src directive to 'none'?\n";
|
| else
|
| message = "Invalid plugin type in 'plugin-types' Content Security Policy directive: '" + pluginType + "'.\n";
|
| logToConsole(message);
|
|
|