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

Issue 1742743002: Add CSP information to Security Panel.

Created:
4 years, 9 months ago by Jonathan Garbee
Modified:
4 years, 8 months ago
Reviewers:
lgarron, paulirish
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CSP information to Security Panel. BUG=588970

Patch Set 1 #

Patch Set 2 : Remove accidentally tracked files #

Patch Set 3 : DL to Table, Toggling sections, Parser moved to SDK. #

Patch Set 4 : Overview of enforcement in place. Minor UX update until design is looked over. #

Patch Set 5 : Merge master changes #

Patch Set 6 : Refactor display creation. Add view for policy state and deprecation warnings. #

Patch Set 7 : Add experiment to enable CSP Details #

Patch Set 8 : Add human readable property to policies and rules. #

Patch Set 9 : Cleanup CSP Parser #

Patch Set 10 : Update to cleaner UX. Always shows CSP data, whether on HTTPS page or not. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -0 lines) Patch
M third_party/WebKit/Source/devtools/devtools.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/sdk/CSPParser.js View 1 2 3 4 5 6 7 8 9 1 chunk +275 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/module.json View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 1 2 3 4 5 6 7 8 9 3 chunks +131 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/originView.css View 1 2 3 4 5 6 7 8 9 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (1 generated)
Jonathan Garbee
PTAL Provides CSP in a pretty fashion under the Security panel. Along with warnings for ...
4 years, 9 months ago (2016-02-26 17:00:27 UTC) #2
lgarron
On 2016/02/26 at 17:00:27, jonathan.garbee wrote: > PTAL > > Provides CSP in a pretty ...
4 years, 9 months ago (2016-02-26 23:21:42 UTC) #3
neil.matatall
Would you consider sorting the source expressions within the directives? Perhaps bubbling up things like ...
4 years, 9 months ago (2016-02-27 00:12:55 UTC) #4
Jonathan Garbee
On 2016/02/26 at 23:21:42, lgarron wrote: > On 2016/02/26 at 17:00:27, jonathan.garbee wrote: > > ...
4 years, 9 months ago (2016-02-27 00:38:07 UTC) #5
Jonathan Garbee
On 2016/02/27 at 00:12:55, neil.matatall wrote: > Would you consider sorting the source expressions within ...
4 years, 9 months ago (2016-02-27 00:39:46 UTC) #6
lgarron
On 2016/02/27 at 00:38:07, jonathan.garbee wrote: > On 2016/02/26 at 23:21:42, lgarron wrote: > > ...
4 years, 9 months ago (2016-02-27 00:42:32 UTC) #7
Jonathan Garbee
Ah right, meta tags as well. Forgot about that directive. We can easily tell, since ...
4 years, 9 months ago (2016-02-27 00:46:23 UTC) #8
Jonathan Garbee
Ah right, meta tags as well. Forgot about that directive. We can easily tell, since ...
4 years, 9 months ago (2016-02-27 00:46:23 UTC) #9
paulirish
It'd make sense to move the CSP parsing into NetworkRequest. (or it's own file like ...
4 years, 9 months ago (2016-02-27 02:36:46 UTC) #10
Jonathan Garbee
Well, own file is the best choice. It isn't strictly network bound due to meta ...
4 years, 9 months ago (2016-02-27 10:26:46 UTC) #11
Jonathan Garbee
Well, own file is the best choice. It isn't strictly network bound due to meta ...
4 years, 9 months ago (2016-02-27 10:26:46 UTC) #12
Jonathan Garbee
On 2016/02/27 at 10:26:46, Jonathan Garbee wrote: > Well, own file is the best choice. ...
4 years, 9 months ago (2016-02-29 22:01:51 UTC) #13
Jonathan Garbee
This mornings patchset: * Use the warning icon as an arrow indicator for shown/hidden state ...
4 years, 9 months ago (2016-03-01 14:59:28 UTC) #14
Jonathan Garbee
This mornings patchset: * Use the warning icon as an arrow indicator for shown/hidden state ...
4 years, 9 months ago (2016-03-01 14:59:28 UTC) #15
paulirish
The new UI doesn't work as well for me. I much preferred the straightforward list, ...
4 years, 9 months ago (2016-03-01 20:44:49 UTC) #16
Jonathan Garbee
On 2016/03/01 at 20:44:49, paulirish wrote: > The new UI doesn't work as well for ...
4 years, 9 months ago (2016-03-15 18:17:56 UTC) #17
Jonathan Garbee
On 2016/03/15 at 18:17:56, Jonathan Garbee wrote: > On 2016/03/01 at 20:44:49, paulirish wrote: > ...
4 years, 9 months ago (2016-03-15 23:32:53 UTC) #18
Jonathan Garbee
On 2016/03/15 at 23:32:53, Jonathan Garbee wrote: > On 2016/03/15 at 18:17:56, Jonathan Garbee wrote: ...
4 years, 9 months ago (2016-03-16 14:24:33 UTC) #19
Jonathan Garbee
On 2016/03/15 at 23:32:53, Jonathan Garbee wrote: > On 2016/03/15 at 18:17:56, Jonathan Garbee wrote: ...
4 years, 9 months ago (2016-03-16 15:28:51 UTC) #20
Jonathan Garbee
On 2016/03/16 at 15:28:51, Jonathan Garbee wrote: > On 2016/03/15 at 23:32:53, Jonathan Garbee wrote: ...
4 years, 9 months ago (2016-03-16 17:29:19 UTC) #21
maxwalker
This is really cool! Some thoughts and a design proposal: - I would also prefer ...
4 years, 9 months ago (2016-03-22 17:29:16 UTC) #22
Jonathan Garbee
On 2016/03/22 at 17:29:16, maxwalker wrote: > This is really cool! > > Some thoughts ...
4 years, 9 months ago (2016-03-22 20:06:08 UTC) #23
maxwalker
Sure thing - thank you, Jonathan! Icons: we could use grey scale icons (similar to ...
4 years, 9 months ago (2016-03-23 10:50:06 UTC) #24
Jonathan Garbee
On 2016/03/23 at 10:50:06, maxwalker wrote: > Sure thing - thank you, Jonathan! > > ...
4 years, 9 months ago (2016-03-24 14:04:24 UTC) #25
Jonathan Garbee
4 years, 8 months ago (2016-03-27 20:46:30 UTC) #26
On 2016/03/24 at 14:04:24, Jonathan Garbee wrote:
> On 2016/03/23 at 10:50:06, maxwalker wrote:
> > Sure thing - thank you, Jonathan!
> > 
> > Icons: we could use grey scale icons (similar to the info (i) icon we use
for blocked mixed content) to avoid confusion with the lock-icon color coding. I
think it would still be alarming enough (see updated mock).
> > 
> > Report only: as "Report only" is generally more for
temporary/experimentation purposes while "Enforced" is the common setting, could
we just add a text-label on the right when applicable (see style-src row in
mock)?
> > 
> > Updated design: http://cl.ly/0g3V1E1K1A0B
> 
> LGTM now. The only last *possible* issue (need to do more specific testing to
verify behavior) is the "report only" may need to be moved to the heading
column. Since as I understand it the enforcement level should be *policy* level
over *rule* level. However, exact behavior not tested.
> 
> That shouldn't be a big deal to just test and move as-needed. I'll get working
on this UX update tomorrow.

Looking over the Level 2 specification just now, things for the parser are
getting quite a bit more complicated. A party can send *multiple* headers, then
only the rules that exist within *both* must be enforced. Which means the parser
needs to be able to have a rulset, then compare to another and look for the same
rules. Which gets hairy due to `default-src` also coming into play.

Lucas, do you think it is a good idea to try and build something that would call
the CSP Policy being enforced out of the internal parser [1]? That seems like
the best method to me, since we'd then have an exact JSON representation of what
is being enforced that we can then display helpful information about. Or should
I simply build all of this logic in our frontend JS?

[1]
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit...

Powered by Google App Engine
This is Rietveld 408576698