| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2191 | 2191 |
| 2192 // | 2192 // |
| 2193 // Frame navigation | 2193 // Frame navigation |
| 2194 // | 2194 // |
| 2195 | 2195 |
| 2196 // From a good HTTPS top frame: | 2196 // From a good HTTPS top frame: |
| 2197 // - navigate to an OK HTTPS frame | 2197 // - navigate to an OK HTTPS frame |
| 2198 // - navigate to a bad HTTPS (expect unsafe content and filtered frame), then | 2198 // - navigate to a bad HTTPS (expect unsafe content and filtered frame), then |
| 2199 // back | 2199 // back |
| 2200 // - navigate to HTTP (expect insecure content), then back | 2200 // - navigate to HTTP (expect insecure content), then back |
| 2201 IN_PROC_BROWSER_TEST_F(SSLUITest, TestGoodFrameNavigation) { | 2201 IN_PROC_BROWSER_TEST_F(SSLUITest, DISABLED_TestGoodFrameNavigation) { |
| 2202 ASSERT_TRUE(embedded_test_server()->Start()); | 2202 ASSERT_TRUE(embedded_test_server()->Start()); |
| 2203 ASSERT_TRUE(https_server_.Start()); | 2203 ASSERT_TRUE(https_server_.Start()); |
| 2204 ASSERT_TRUE(https_server_expired_.Start()); | 2204 ASSERT_TRUE(https_server_expired_.Start()); |
| 2205 | 2205 |
| 2206 // Make sure to add this hostname to the resolver so that it's not blocked | 2206 // Make sure to add this hostname to the resolver so that it's not blocked |
| 2207 // (browser_test_base.cc has a resolver that blocks all non-local hostnames | 2207 // (browser_test_base.cc has a resolver that blocks all non-local hostnames |
| 2208 // by default to ensure tests don't hit the network). This is critical to do | 2208 // by default to ensure tests don't hit the network). This is critical to do |
| 2209 // because for PlzNavigate the request would otherwise get cancelled in the | 2209 // because for PlzNavigate the request would otherwise get cancelled in the |
| 2210 // browser before the renderer sees it. | 2210 // browser before the renderer sees it. |
| 2211 host_resolver()->AddRule( | 2211 host_resolver()->AddRule( |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3882 | 3882 |
| 3883 // Visit a page over https that contains a frame with a redirect. | 3883 // Visit a page over https that contains a frame with a redirect. |
| 3884 | 3884 |
| 3885 // XMLHttpRequest insecure content in synchronous mode. | 3885 // XMLHttpRequest insecure content in synchronous mode. |
| 3886 | 3886 |
| 3887 // XMLHttpRequest insecure content in asynchronous mode. | 3887 // XMLHttpRequest insecure content in asynchronous mode. |
| 3888 | 3888 |
| 3889 // XMLHttpRequest over bad ssl in synchronous mode. | 3889 // XMLHttpRequest over bad ssl in synchronous mode. |
| 3890 | 3890 |
| 3891 // XMLHttpRequest over OK ssl in synchronous mode. | 3891 // XMLHttpRequest over OK ssl in synchronous mode. |
| OLD | NEW |