diff options
-rw-r--r-- | net/base/transport_security_state.cc | 3 | ||||
-rw-r--r-- | net/base/transport_security_state_unittest.cc | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc index 3e2d866..345aa69 100644 --- a/net/base/transport_security_state.cc +++ b/net/base/transport_security_state.cc @@ -431,6 +431,9 @@ bool TransportSecurityState::IsPreloadedSTS( {10, false, "\004neg9\003org"}, {12, true, "\006riseup\003net"}, {11, false, "\006factor\002cc"}, + {22, false, "\007members\010mayfirst\003org"}, + {22, false, "\007support\010mayfirst\003org"}, + {17, false, "\002id\010mayfirst\003org"}, }; static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS); diff --git a/net/base/transport_security_state_unittest.cc b/net/base/transport_security_state_unittest.cc index ac865e8..af4d422 100644 --- a/net/base/transport_security_state_unittest.cc +++ b/net/base/transport_security_state_unittest.cc @@ -360,6 +360,11 @@ TEST_F(TransportSecurityStateTest, Preloaded) { EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "factor.cc")); EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.factor.cc")); + + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "members.mayfirst.org")); + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "support.mayfirst.org")); + EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "id.mayfirst.org")); + EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "www.mayfirst.org")); } TEST_F(TransportSecurityStateTest, LongNames) { |