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

Issue 811703006: Added more useful message error message for plugin-types CSP directive. (Closed)

Created:
5 years, 11 months ago by jww
Modified:
5 years, 11 months ago
Reviewers:
Mike West
CC:
blink-reviews, mkwst+watchlist-csp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Added more useful message error message for plugin-types CSP directive. As pointed out in http://lists.w3.org/Archives/Public/public-webappsec/2015Jan/0096.html, it's a bit confusing for developers that 'none' is not a valid value for the CSP directive plugin-types. It was suggested that an improved console error message pointing developers to object-src might be helpful. This adds such an error message if the plugin-types value is set to 'none'. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188320

Patch Set 1 #

Patch Set 2 : plugin-types error msg improvement #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt View 2 chunks +9 lines, -0 lines 1 comment Download
M Source/core/frame/csp/ContentSecurityPolicy.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
jww
Mike, this is an improved error message for plugin-types as per the thread at http://lists.w3.org/Archives/Public/public-webappsec/2015Jan/0096.html. ...
5 years, 11 months ago (2015-01-13 01:36:28 UTC) #2
Mike West
LGTM. https://codereview.chromium.org/811703006/diff/20001/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt File LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt (right): https://codereview.chromium.org/811703006/diff/20001/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt#newcode9 LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt:9: CONSOLE ERROR: Invalid plugin type in 'plugin-types' Content ...
5 years, 11 months ago (2015-01-13 06:55:08 UTC) #3
jww
On 2015/01/13 06:55:08, Mike West wrote: > LGTM. > > https://codereview.chromium.org/811703006/diff/20001/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt > File > LayoutTests/http/tests/security/contentSecurityPolicy/1.1/plugintypes-invalid-expected.txt ...
5 years, 11 months ago (2015-01-13 18:08:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811703006/20001
5 years, 11 months ago (2015-01-13 18:09:16 UTC) #6
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 19:23:39 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188320

Powered by Google App Engine
This is Rietveld 408576698