Commit 4adf82fd authored by jam's avatar jam Committed by Commit bot

Add repro for crash when opening window with --allow-insecure-localhost.

BUG=635833

Review-Url: https://codereview.chromium.org/2358983004
Cr-Commit-Position: refs/heads/master@{#420555}
parent 36bc4339
...@@ -3261,6 +3261,18 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, PushStateSSLState) { ...@@ -3261,6 +3261,18 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, PushStateSSLState) {
CheckAuthenticatedState(tab, AuthState::NONE); CheckAuthenticatedState(tab, AuthState::NONE);
} }
// Regression test for http://crbug.com/635833 (crash when a window with no
// NavigationEntry commits).
IN_PROC_BROWSER_TEST_F(SSLUITestIgnoreLocalhostCertErrors,
NoCrashOnLoadWithNoNavigationEntry) {
ASSERT_TRUE(embedded_test_server()->Start());
ui_test_utils::NavigateToURL(
browser(), embedded_test_server()->GetURL("/ssl/google.html"));
WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents();
ASSERT_TRUE(content::ExecuteScript(tab, "window.open()"));
}
// TODO(jcampan): more tests to do below. // TODO(jcampan): more tests to do below.
// Visit a page over https that contains a frame with a redirect. // Visit a page over https that contains a frame with a redirect.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment