summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/base/transport_security_state.cc1
-rw-r--r--net/base/transport_security_state_unittest.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index 0ed192e1..952e78b 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -396,6 +396,7 @@ bool TransportSecurityState::isPreloadedSTS(
{16, false, "\003www\006elanex\003biz"},
{12, true, "\006jottit\003com"},
{19, true, "\015sunshinepress\003org"},
+ {21, false, "\003www\013noisebridge\003net"},
};
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 163b82e..457df90 100644
--- a/net/base/transport_security_state_unittest.cc
+++ b/net/base/transport_security_state_unittest.cc
@@ -338,6 +338,10 @@ TEST_F(TransportSecurityStateTest, Preloaded) {
TransportSecurityState::DomainState::MODE_STRICT);
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.sunshinepress.org"));
EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "a.b.sunshinepress.org"));
+
+ EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "www.noisebridge.net"));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "noisebridge.net"));
+ EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "foo.noisebridge.net"));
}
} // namespace net