| 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 "content/browser/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 6643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6654 GURL url(https_server.GetURL( | 6654 GURL url(https_server.GetURL( |
| 6655 "example.test", | 6655 "example.test", |
| 6656 "/mixed-content/non-redundant-cert-error-in-iframe.html")); | 6656 "/mixed-content/non-redundant-cert-error-in-iframe.html")); |
| 6657 EXPECT_TRUE(NavigateToURL(shell(), url)); | 6657 EXPECT_TRUE(NavigateToURL(shell(), url)); |
| 6658 | 6658 |
| 6659 NavigationEntry* entry = | 6659 NavigationEntry* entry = |
| 6660 shell()->web_contents()->GetController().GetLastCommittedEntry(); | 6660 shell()->web_contents()->GetController().GetLastCommittedEntry(); |
| 6661 ASSERT_TRUE(entry); | 6661 ASSERT_TRUE(entry); |
| 6662 | 6662 |
| 6663 // The main page was loaded with certificate errors. | 6663 // The main page was loaded with certificate errors. |
| 6664 EXPECT_EQ(SECURITY_STYLE_AUTHENTICATION_BROKEN, | 6664 EXPECT_TRUE(net::IsCertStatusError(entry->GetSSL().cert_status)); |
| 6665 entry->GetSSL().security_style); | |
| 6666 | 6665 |
| 6667 // The image that the iframe loaded had certificate errors also, so | 6666 // The image that the iframe loaded had certificate errors also, so |
| 6668 // the page should be marked as having displayed subresources with | 6667 // the page should be marked as having displayed subresources with |
| 6669 // cert errors. | 6668 // cert errors. |
| 6670 EXPECT_TRUE(entry->GetSSL().content_status & | 6669 EXPECT_TRUE(entry->GetSSL().content_status & |
| 6671 SSLStatus::DISPLAYED_CONTENT_WITH_CERT_ERRORS); | 6670 SSLStatus::DISPLAYED_CONTENT_WITH_CERT_ERRORS); |
| 6672 } | 6671 } |
| 6673 | 6672 |
| 6674 // Test setting a cross-origin iframe to display: none. | 6673 // Test setting a cross-origin iframe to display: none. |
| 6675 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, CrossSiteIframeDisplayNone) { | 6674 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, CrossSiteIframeDisplayNone) { |
| (...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8225 " Site A ------------ proxies for B C\n" | 8224 " Site A ------------ proxies for B C\n" |
| 8226 " +--Site B ------- proxies for A C\n" | 8225 " +--Site B ------- proxies for A C\n" |
| 8227 " +--Site C -- proxies for A B\n" | 8226 " +--Site C -- proxies for A B\n" |
| 8228 "Where A = http://a.com/\n" | 8227 "Where A = http://a.com/\n" |
| 8229 " B = http://b.com/\n" | 8228 " B = http://b.com/\n" |
| 8230 " C = http://c.com/", | 8229 " C = http://c.com/", |
| 8231 DepictFrameTree(root)); | 8230 DepictFrameTree(root)); |
| 8232 } | 8231 } |
| 8233 | 8232 |
| 8234 } // namespace content | 8233 } // namespace content |
| OLD | NEW |