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

Issue 2542533004: Override DevTools security summary when a Safe Browsing warning shows. (Closed)

Created:
4 years ago by elawrence
Modified:
4 years ago
Reviewers:
dgozman, jam, *estark
CC:
chromium-reviews, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, darin-cc_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Override DevTools security summary when a Safe Browsing warning shows. When a Safe Browsing warning is showing, the Developer Tools Security panel should show custom text in the summary area. BUG=654600 Committed: https://crrev.com/7a5785c7cb84a522fc8b148bb80afbd74acbc695 Cr-Commit-Position: refs/heads/master@{#438968}

Patch Set 1 #

Patch Set 2 : Update layout tests for Security Panel of Developer Tools #

Patch Set 3 : Update Browser tests for SecurityStyleExplanations #

Patch Set 4 : Use out-of-line copy constructer per style guide #

Patch Set 5 : Redefine event parameter (optional instead of nullable) for Closure Compiler #

Total comments: 3

Patch Set 6 : Address review feedback #

Total comments: 3

Patch Set 7 : Parameters for the securityStatusChanged event and related objects are not optional #

Total comments: 9

Patch Set 8 : Address feedback; rebase #

Total comments: 3

Patch Set 9 : Address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -45 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 5 chunks +26 lines, -5 lines 0 comments Download
M chrome/browser/ssl/security_state_tab_helper_browser_tests.cc View 1 2 3 4 5 6 7 6 chunks +6 lines, -0 lines 0 comments Download
M components/security_state/content/content_utils.cc View 7 1 chunk +6 lines, -0 lines 0 comments Download
M components/security_state_strings.grdp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/security_handler.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M content/public/browser/security_style_explanations.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/security_style_explanations.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M headless/lib/headless_web_contents_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/active-and-passive-subresources-with-cert-errors.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/active-subresource-with-cert-errors.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/blocked-mixed-content-and-subresources-with-cert-errors.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/mixed-content-active-and-passive-reload.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/mixed-content-and-subresources-with-cert-errors.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/mixed-content-reload.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/passive-subresource-with-cert-errors.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/security-all-resources-secure.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-and-malicious.html View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-and-malicious-expected.txt View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/security/security-explanation-ordering.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/security/security-secure-but-malicious.html View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/security/security-secure-but-malicious-expected.txt View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 73 (56 generated)
elawrence
The Closure Compiler is finally happy. Can you PTAL? Thanks!
4 years ago (2016-12-06 22:35:47 UTC) #13
estark
Thanks, lgtm with a few nits/questions. A devtools reviewer will ask you to attach a ...
4 years ago (2016-12-07 01:00:09 UTC) #14
elawrence
Thanks for the quick turnaround! > A devtools reviewer will ask you to attach a ...
4 years ago (2016-12-07 21:46:00 UTC) #15
elawrence
dgozman@chromium.org: Please review changes in third_party/WebKit/Source/core/inspector/browser_protocol.json third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js jam@chromium.org: Please review changes in content/browser/devtools/protocol/security_handler.cc content/public/browser/security_style_explanations.h ...
4 years ago (2016-12-07 22:02:29 UTC) #17
dgozman
https://codereview.chromium.org/2542533004/diff/140001/third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-and-malicious.html File third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-and-malicious.html (right): https://codereview.chromium.org/2542533004/diff/140001/third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-and-malicious.html#newcode10 third_party/WebKit/LayoutTests/http/tests/inspector/security/security-blocked-mixed-content-and-malicious.html:10: InspectorTest.mainTarget.model(Security.SecurityModel).dispatchEventToListeners(Security.SecurityModel.Events.SecurityStateChanged, new Security.PageSecurityState(Protocol.Security.SecurityState.Secure, [], "This page is dangerous, according ...
4 years ago (2016-12-07 22:28:11 UTC) #18
jam
lgtm
4 years ago (2016-12-08 17:01:44 UTC) #19
elawrence
> Let's use dummy text instead? Done. > Don't make it optional if you always ...
4 years ago (2016-12-09 17:38:22 UTC) #31
dgozman
https://codereview.chromium.org/2542533004/diff/180001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2542533004/diff/180001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode908 third_party/WebKit/Source/core/inspector/browser_protocol.json:908: { "name": "summaryOverride", "type": "string", "description": "Overrides user-visible description ...
4 years ago (2016-12-09 20:57:39 UTC) #34
elawrence
Thanks for having a look! > What does the "overrides" mean? Let's just say "summary", ...
4 years ago (2016-12-09 21:19:31 UTC) #35
dgozman
On 2016/12/09 21:19:31, elawrence wrote: > Thanks for having a look! > > > What ...
4 years ago (2016-12-09 21:24:36 UTC) #36
elawrence
Thanks, @dgozman-- I've changed back to an optional summary and rebased a few times, can ...
4 years ago (2016-12-14 22:32:15 UTC) #56
estark
Still lgtm
4 years ago (2016-12-15 18:47:10 UTC) #59
dgozman
lgtm with some comments. Thank you for working on this! https://codereview.chromium.org/2542533004/diff/280001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2542533004/diff/280001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode904 ...
4 years ago (2016-12-15 18:54:43 UTC) #60
elawrence
Thanks for reviewing! > Note that "headless" target depends on this protocol as well, and ...
4 years ago (2016-12-15 21:04:30 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542533004/300001
4 years ago (2016-12-15 23:57:06 UTC) #68
commit-bot: I haz the power
Committed patchset #9 (id:300001)
4 years ago (2016-12-16 00:45:53 UTC) #71
commit-bot: I haz the power
4 years ago (2016-12-16 00:47:36 UTC) #73
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7a5785c7cb84a522fc8b148bb80afbd74acbc695
Cr-Commit-Position: refs/heads/master@{#438968}

Powered by Google App Engine
This is Rietveld 408576698