Home | History | Annotate | Download | only in ssl

Lines Matching refs:tab

36   void CheckAuthenticatedState(TabContents* tab,
38 NavigationEntry* entry = tab->controller().GetActiveEntry();
48 void CheckUnauthenticatedState(TabContents* tab) {
49 NavigationEntry* entry = tab->controller().GetActiveEntry();
58 void CheckAuthenticationBrokenState(TabContents* tab,
62 NavigationEntry* entry = tab->controller().GetActiveEntry();
76 void CheckWorkerLoadResult(TabContents* tab, bool expectLoaded) {
87 tab->render_view_host(), std::wstring(),
102 tab->render_view_host(), std::wstring(),
108 void ProceedThroughInterstitial(TabContents* tab) {
109 InterstitialPage* interstitial_page = tab->interstitial_page();
113 ui_test_utils::WaitForNavigation(&(tab->controller()));
247 TabContents* tab = browser()->GetSelectedTabContents();
248 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
251 ProceedThroughInterstitial(tab);
253 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
277 TabContents* tab = browser()->GetSelectedTabContents();
278 NavigationEntry* entry = tab->controller().GetActiveEntry();
295 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_COMMON_NAME_INVALID,
299 InterstitialPage* interstitial_page = tab->interstitial_page();
304 CheckAuthenticatedState(tab, false);
309 CheckUnauthenticatedState(tab);
320 TabContents* tab = browser()->GetSelectedTabContents();
321 NavigationEntry* entry = tab->controller().GetActiveEntry();
327 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
335 CheckUnauthenticatedState(tab);
347 TabContents* tab = browser()->GetSelectedTabContents();
348 NavigationEntry* entry = tab->controller().GetActiveEntry();
354 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
358 tab->controller().GoToOffset(-1);
362 CheckUnauthenticatedState(tab);
374 TabContents* tab = browser()->GetSelectedTabContents();
375 NavigationEntry* entry1 = tab->controller().GetActiveEntry();
379 NavigationEntry* entry2 = tab->controller().GetActiveEntry();
383 tab->controller().GoBack();
384 ui_test_utils::WaitForNavigation(&(tab->controller()));
385 ASSERT_TRUE(tab->controller().CanGoForward());
386 NavigationEntry* entry3 = tab->controller().GetActiveEntry();
392 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
396 tab
397 ui_test_utils::WaitForNavigation(&(tab->controller()));
401 CheckUnauthenticatedState(tab);
402 EXPECT_FALSE(tab->controller().CanGoForward());
403 NavigationEntry* entry4 = tab->controller().GetActiveEntry();
407 // Open a page with a HTTPS error in a tab with no prior navigation (through a
478 TabContents* tab = browser()->GetSelectedTabContents();
481 CheckAuthenticatedState(tab, false);
488 EXPECT_EQ(0, static_cast<int>(tab->constrained_window_count()));
492 tab->render_view_host(), std::wstring(),
501 tab->render_view_host(), std::wstring(),
520 TabContents* tab = browser()->GetSelectedTabContents();
521 CheckAuthenticatedState(tab, false);
526 tab->render_view_host(), std::wstring(), L"loadBadImage();", &js_result));
530 CheckAuthenticatedState(tab, true);
545 // This tab should be fine.
548 // Create a new tab.
564 // The new tab has insecure content.
567 // The original tab should not be contaminated.
583 // This tab should be fine.
592 // Create a new tab.
601 // The new tab has insecure content.
604 // Which means the origin for the first tab has also been contaminated with
625 TabContents* tab = browser()->GetSelectedTabContents();
626 CheckUnauthenticatedState(tab);
632 CheckAuthenticatedState(tab, true);
651 TabContents* tab = browser()->GetSelectedTabContents();
652 CheckUnauthenticatedState(tab);
658 CheckAuthenticationBrokenState(tab, 0, true, false);
674 TabContents* tab = browser()->GetSelectedTabContents();
675 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_COMMON_NAME_INVALID,
677 ProceedThroughInterstitial(tab);
678 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_COMMON_NAME_INVALID,
686 CheckAuthenticatedState(tab, false);
693 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_COMMON_NAME_INVALID,
704 TabContents* tab = browser()->GetSelectedTabContents();
705 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
708 ProceedThroughInterstitial(tab);
710 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
718 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
751 // Let's add another tab to make sure the browser does not exit when we close
752 // the first tab.
758 // Close the first tab.
774 TabContents* tab = browser()->GetSelectedTabContents();
776 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
779 ProceedThroughInterstitial(tab);
782 CheckAuthenticatedState(tab, false);
795 TabContents* tab = browser()->GetSelectedTabContents();
796 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
799 ProceedThroughInterstitial(tab);
801 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
811 TabContents* tab = browser()->GetSelectedTabContents();
820 CheckAuthenticatedState(tab, false);
828 TabContents* tab = browser()->GetSelectedTabContents();
835 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
838 ProceedThroughInterstitial(tab);
840 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
891 TabContents* tab = browser()->GetSelectedTabContents();
895 CheckAuthenticatedState(tab, false);
900 tab->render_view_host(), std::wstring(),
904 ui_test_utils::WaitForNavigation(&tab->controller());
907 CheckAuthenticatedState(tab, false);
911 tab->render_view_host(), std::wstring(),
915 ui_test_utils::WaitForNavigation(&tab->controller());
918 CheckAuthenticatedState(tab, false);
926 tab->render_view_host(), content_frame_xpath, is_evil_js,
931 tab->controller().GoBack();
932 ui_test_utils::WaitForNavigation(&tab->controller());
933 CheckAuthenticatedState(tab, false);
937 tab->render_view_host(), std::wstring(),
941 ui_test_utils::WaitForNavigation(&tab->controller());
944 CheckAuthenticatedState(tab, true);
947 tab->controller().GoBack();
948 ui_test_utils::WaitForNavigation(&tab->controller());
949 CheckAuthenticatedState(tab, true);
965 TabContents* tab = browser()->GetSelectedTabContents();
968 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
971 ProceedThroughInterstitial(tab);
976 tab->render_view_host(), std::wstring(),
980 ui_test_utils::WaitForNavigation(&tab->controller());
983 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
1009 TabContents* tab = browser()->GetSelectedTabContents();
1012 CheckUnauthenticatedState(tab);
1017 tab->render_view_host(), std::wstring(),
1021 ui_test_utils::WaitForNavigation(&tab->controller());
1024 CheckUnauthenticatedState(tab);
1028 tab->render_view_host(), std::wstring(),
1032 ui_test_utils::WaitForNavigation(&tab->controller());
1035 CheckUnauthenticatedState(tab);
1043 tab->render_view_host(), content_frame_xpath, is_evil_js,
1060 TabContents* tab = browser()->GetSelectedTabContents();
1062 CheckWorkerLoadResult(tab, false);
1064 CheckAuthenticatedState(tab, false);
1076 TabContents* tab = browser()->GetSelectedTabContents();
1077 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
1079 ProceedThroughInterstitial(tab);
1080 CheckAuthenticationBrokenState(tab, net::CERT_STATUS_DATE_INVALID, false,
1091 CheckWorkerLoadResult(tab, true); // Worker loads insecure content
1092 CheckAuthenticationBrokenState(tab, 0, true, false);