Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <queue> 5 #include <queue>
6 #include <set> 6 #include <set>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 #define MAYBE_Shim_TestChromeExtensionRelativePath \ 1291 #define MAYBE_Shim_TestChromeExtensionRelativePath \
1292 Shim_TestChromeExtensionRelativePath 1292 Shim_TestChromeExtensionRelativePath
1293 #endif 1293 #endif
1294 IN_PROC_BROWSER_TEST_P(WebViewTest, 1294 IN_PROC_BROWSER_TEST_P(WebViewTest,
1295 MAYBE_Shim_TestChromeExtensionRelativePath) { 1295 MAYBE_Shim_TestChromeExtensionRelativePath) {
1296 TestHelper("testChromeExtensionRelativePath", 1296 TestHelper("testChromeExtensionRelativePath",
1297 "web_view/shim", 1297 "web_view/shim",
1298 NO_TEST_SERVER); 1298 NO_TEST_SERVER);
1299 } 1299 }
1300 1300
1301 IN_PROC_BROWSER_TEST_P(WebViewTest,
1302 Shim_TestContentInitiatedNavigationToDataUrlBlocked) {
1303 TestHelper("testContentInitiatedNavigationToDataUrlBlocked", "web_view/shim",
1304 NO_TEST_SERVER);
1305 }
1306
1301 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestDisplayNoneWebviewLoad) { 1307 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestDisplayNoneWebviewLoad) {
1302 TestHelper("testDisplayNoneWebviewLoad", "web_view/shim", NO_TEST_SERVER); 1308 TestHelper("testDisplayNoneWebviewLoad", "web_view/shim", NO_TEST_SERVER);
1303 } 1309 }
1304 1310
1305 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestDisplayNoneWebviewRemoveChild) { 1311 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestDisplayNoneWebviewRemoveChild) {
1306 // http://crbug.com/585652 1312 // http://crbug.com/585652
1307 if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames)) 1313 if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames))
1308 return; 1314 return;
1309 TestHelper("testDisplayNoneWebviewRemoveChild", 1315 TestHelper("testDisplayNoneWebviewRemoveChild",
1310 "web_view/shim", NO_TEST_SERVER); 1316 "web_view/shim", NO_TEST_SERVER);
(...skipping 2814 matching lines...) Expand 10 before | Expand all | Expand 10 after
4125 ClosingChromeSignInShouldNotCrash) { 4131 ClosingChromeSignInShouldNotCrash) {
4126 GURL signin_url{"chrome://chrome-signin"}; 4132 GURL signin_url{"chrome://chrome-signin"};
4127 4133
4128 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED); 4134 AddTabAtIndex(0, signin_url, ui::PAGE_TRANSITION_TYPED);
4129 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED); 4135 AddTabAtIndex(1, signin_url, ui::PAGE_TRANSITION_TYPED);
4130 WaitForWebViewInDom(); 4136 WaitForWebViewInDom();
4131 4137
4132 chrome::CloseTab(browser()); 4138 chrome::CloseTab(browser());
4133 } 4139 }
4134 #endif 4140 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698