| Index: chrome/browser/ssl/ssl_browser_tests.cc
|
| diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc
|
| index 465d7ab86bd8de73a92f5a000bc5d94a97a1a100..b65f631b1605cdeb93862db60638f60e1bc3523c 100644
|
| --- a/chrome/browser/ssl/ssl_browser_tests.cc
|
| +++ b/chrome/browser/ssl/ssl_browser_tests.cc
|
| @@ -2354,6 +2354,33 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, BadCertFollowedByGoodCert) {
|
| EXPECT_FALSE(state->HasAllowException(https_server_host));
|
| }
|
|
|
| +// Tests that the SSLStatus of a navigation entry for an interstitial
|
| +// matches the navigation entry once the interstitial is clicked
|
| +// through. https://crbug.com/529456
|
| +IN_PROC_BROWSER_TEST_F(SSLUITest,
|
| + SSLStatusMatchesOnInterstitialAndAfterProceed) {
|
| + ASSERT_TRUE(https_server_expired_.Start());
|
| + WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents();
|
| + ASSERT_TRUE(tab);
|
| +
|
| + ui_test_utils::NavigateToURL(
|
| + browser(), https_server_expired_.GetURL("files/ssl/google.html"));
|
| + content::WaitForInterstitialAttach(tab);
|
| + EXPECT_TRUE(tab->ShowingInterstitialPage());
|
| +
|
| + content::NavigationEntry* entry = tab->GetController().GetActiveEntry();
|
| + ASSERT_TRUE(entry);
|
| + content::SSLStatus interstitial_ssl_status = entry->GetSSL();
|
| +
|
| + ProceedThroughInterstitial(tab);
|
| + EXPECT_FALSE(tab->ShowingInterstitialPage());
|
| + entry = tab->GetController().GetActiveEntry();
|
| + ASSERT_TRUE(entry);
|
| +
|
| + content::SSLStatus after_interstitial_ssl_status = entry->GetSSL();
|
| + EXPECT_TRUE(interstitial_ssl_status.Equals(after_interstitial_ssl_status));
|
| +}
|
| +
|
| class CommonNameMismatchBrowserTest : public CertVerifierBrowserTest {
|
| public:
|
| CommonNameMismatchBrowserTest() : CertVerifierBrowserTest() {}
|
|
|