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

Issue 6500010: HSTS: add net-internals UI. (Closed)

Created:
9 years, 10 months ago by agl
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

HSTS: add net-internals UI. This change adds a simple DOMUI interface to the HSTS list. Since the list is stored, hashed in memory and on disk, there's no list of entries. But the set can be queried and we can provide insertion and deletion. BUG=none TEST=Open about:net-internals, goto HSTS tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75282

Patch Set 1 #

Total comments: 3

Patch Set 2 : ... #

Total comments: 2

Patch Set 3 : ... #

Total comments: 4

Patch Set 4 : ... #

Total comments: 48

Patch Set 5 : ... #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -19 lines) Patch
M chrome/browser/dom_ui/net_internals_ui.cc View 1 2 3 4 4 chunks +87 lines, -0 lines 0 comments Download
A chrome/browser/resources/net_internals/hstsview.js View 1 2 3 4 1 chunk +118 lines, -0 lines 4 comments Download
M chrome/browser/resources/net_internals/index.html View 1 2 3 4 3 chunks +43 lines, -0 lines 2 comments Download
M chrome/browser/resources/net_internals/main.css View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/main.js View 1 2 3 4 6 chunks +36 lines, -0 lines 2 comments Download
M net/base/dns_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/dns_util.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 2 comments Download
M net/base/dns_util_unittest.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M net/base/transport_security_state.h View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
M net/base/transport_security_state.cc View 1 2 3 4 7 chunks +43 lines, -15 lines 0 comments Download
M net/base/transport_security_state_unittest.cc View 3 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
agl
http://codereview.chromium.org/6500010/diff/1/net/base/transport_security_state_unittest.cc File net/base/transport_security_state_unittest.cc (right): http://codereview.chromium.org/6500010/diff/1/net/base/transport_security_state_unittest.cc#newcode392 net/base/transport_security_state_unittest.cc:392: EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "chrome.google.com")); These are unrelated to this change, but ...
9 years, 10 months ago (2011-02-11 21:10:17 UTC) #1
willchan no longer on Chromium
[ +mmenke, +eroman for net-internals UI ] I'll look at the non-UI portions.
9 years, 10 months ago (2011-02-11 21:11:34 UTC) #2
willchan no longer on Chromium
Non-UI parts lgtm. http://codereview.chromium.org/6500010/diff/1/net/base/transport_security_state.cc File net/base/transport_security_state.cc (right): http://codereview.chromium.org/6500010/diff/1/net/base/transport_security_state.cc#newcode62 net/base/transport_security_state.cc:62: base::SHA256HashString(canonicalised_host, hashed, sizeof(hashed)); arraysize http://codereview.chromium.org/6500010/diff/1/net/base/transport_security_state.h File ...
9 years, 10 months ago (2011-02-11 21:16:27 UTC) #3
eroman
initial high-level comments: - can you include screenshots showing what this looks like? - please ...
9 years, 10 months ago (2011-02-11 21:46:35 UTC) #4
mmenke
http://codereview.chromium.org/6500010/diff/3001/chrome/browser/dom_ui/net_internals_ui.cc File chrome/browser/dom_ui/net_internals_ui.cc (right): http://codereview.chromium.org/6500010/diff/3001/chrome/browser/dom_ui/net_internals_ui.cc#newcode974 chrome/browser/dom_ui/net_internals_ui.cc:974: const std::string domain(UTF16ToUTF8(domain16)); No need for this conversion. GetString ...
9 years, 10 months ago (2011-02-11 22:06:32 UTC) #5
agl
On Fri, Feb 11, 2011 at 5:06 PM, <mmenke@chromium.org> wrote: > No need for this ...
9 years, 10 months ago (2011-02-11 22:21:08 UTC) #6
agl
On Fri, Feb 11, 2011 at 5:21 PM, Adam Langley <agl@chromium.org> wrote: > Yea, been ...
9 years, 10 months ago (2011-02-15 15:26:54 UTC) #7
agl
On Tue, Feb 15, 2011 at 10:26 AM, Adam Langley <agl@chromium.org> wrote: > Anyone want ...
9 years, 10 months ago (2011-02-16 14:47:41 UTC) #8
mmenke
I'd give Eric a little more time to respond, but the net-internals part of the ...
9 years, 10 months ago (2011-02-16 15:15:34 UTC) #9
eroman
http://codereview.chromium.org/6500010/diff/14002/chrome/browser/dom_ui/net_internals_ui.cc File chrome/browser/dom_ui/net_internals_ui.cc (right): http://codereview.chromium.org/6500010/diff/14002/chrome/browser/dom_ui/net_internals_ui.cc#newcode973 chrome/browser/dom_ui/net_internals_ui.cc:973: CHECK(list->GetString(0, &domain)); Note that GetString() is going to give ...
9 years, 10 months ago (2011-02-16 20:12:45 UTC) #10
mmenke
http://codereview.chromium.org/6500010/diff/14002/chrome/browser/resources/net_internals/hstsview.js File chrome/browser/resources/net_internals/hstsview.js (right): http://codereview.chromium.org/6500010/diff/14002/chrome/browser/resources/net_internals/hstsview.js#newcode77 chrome/browser/resources/net_internals/hstsview.js:77: s = document.createElement('span') nit: A number of these lines ...
9 years, 10 months ago (2011-02-16 20:22:48 UTC) #11
agl
http://codereview.chromium.org/6500010/diff/7001/chrome/browser/dom_ui/net_internals_ui.cc File chrome/browser/dom_ui/net_internals_ui.cc (right): http://codereview.chromium.org/6500010/diff/7001/chrome/browser/dom_ui/net_internals_ui.cc#newcode971 chrome/browser/dom_ui/net_internals_ui.cc:971: // |value| should be: [<domain to query>]. On 2011/02/16 ...
9 years, 10 months ago (2011-02-16 22:46:22 UTC) #12
eroman
LGTM http://codereview.chromium.org/6500010/diff/14002/chrome/browser/resources/net_internals/index.html File chrome/browser/resources/net_internals/index.html (right): http://codereview.chromium.org/6500010/diff/14002/chrome/browser/resources/net_internals/index.html#newcode358 chrome/browser/resources/net_internals/index.html:358: <p>Input a domain name to add it to ...
9 years, 10 months ago (2011-02-17 00:48:28 UTC) #13
agl
9 years, 10 months ago (2011-02-17 17:21:30 UTC) #14
thanks!

http://codereview.chromium.org/6500010/diff/14002/chrome/browser/resources/ne...
File chrome/browser/resources/net_internals/index.html (right):

http://codereview.chromium.org/6500010/diff/14002/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/index.html:358: <p>Input a domain name to
add it to the HSTS set:</p>
On 2011/02/17 00:48:28, eroman wrote:
> I wander if there is a way to show all the overrides they added, or is buildup
> from tests not a concern?

I'm not too worried. Also the domains are stored as hashes for privacy reasons
so listing isn't possible.

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
File chrome/browser/resources/net_internals/hstsview.js (right):

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/hstsview.js:5: // HSTS is HTTPS Strict
Transport Security: a way for sites to elect to always
On 2011/02/17 00:48:28, eroman wrote:
> Thanks for adding this.
> 
> nit: Can you use the /***    ....   ***/ javadoc style used by the other
files?

Done.

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/hstsview.js:102: t =
document.createElement('tt');
On 2011/02/17 00:48:28, eroman wrote:
> You can use addNode() for all these places that are doing createElement +
> appendChild().
> 
> Style choice, up to you. Just figured I would mention it.

Done.

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
File chrome/browser/resources/net_internals/index.html (right):

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/index.html:356: <!-- HSTS is HTTPS Strict
Transport Security: a way for sites to elect to
On 2011/02/17 00:48:28, eroman wrote:
> Could you add this as part of the HTML rather than a comment? I think it would
> be very helpful for users browsing net-internals to know more what this means,
> and be pointed at the webpage with more information.

Done.

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
File chrome/browser/resources/net_internals/main.js (right):

http://codereview.chromium.org/6500010/diff/21001/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/main.js:726: *  
observer.onHSTSQueryResult((result);
On 2011/02/17 00:48:28, eroman wrote:
> nit: typo, unmatched paren.

Done.

http://codereview.chromium.org/6500010/diff/21001/net/base/dns_util.cc
File net/base/dns_util.cc (right):

http://codereview.chromium.org/6500010/diff/21001/net/base/dns_util.cc#newcode64
net/base/dns_util.cc:64: return "";
On 2011/02/17 00:48:28, eroman wrote:
> I recommend adding a test case for one of the bad inputs.

Done.

Powered by Google App Engine
This is Rietveld 408576698