• rsleevi's avatar
    Normalize hostnames before searching for HSTS/HPKP preloads · c2dd599b
    rsleevi authored
    The HSTS/HPKP preload set is pre-normalized at construction time.
    Since the queries come from the GURL, not from the DNS layer,
    we need to normalize the hostname before scanning for preloads.
    This used to be handled by CanonicalizeHost(), which used the
    same mechanism as the resolver, but the storage of the preloads
    has changed to be more efficient, and thus no longer uses the
    resolver-normalized form.
    
    BUG=461481
    R=davidben@chromium.org
    
    Review URL: https://codereview.chromium.org/1149753002
    
    Cr-Commit-Position: refs/heads/master@{#330834}
    c2dd599b
transport_security_state_unittest.cc 42.1 KB