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

Unified Diff: extensions/browser/guest_view/web_view/web_view_apitest.cc

Issue 2787123005: Block data URL navigations with RenderFrameImpl::DecidePolicyForNavigation (Closed)
Patch Set: Attempt another fix 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/web_view/web_view_apitest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_apitest.cc b/extensions/browser/guest_view/web_view/web_view_apitest.cc
index 745edfe7243efa94cd6d76785c820085c5799855..7579798fdd7a38a079be2c18afcaeb18464cddc3 100644
--- a/extensions/browser/guest_view/web_view/web_view_apitest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_apitest.cc
@@ -633,6 +633,11 @@ IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) {
StopTestServer();
}
+IN_PROC_BROWSER_TEST_F(WebViewAPITest,
+ TestContentInitiatedNavigationToDataUrlBlocked) {
+ RunTest("testContentInitiatedNavigationToDataUrlBlocked", "web_view/apitest");
+}
+
IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoPreventDefault) {
std::string app_location = "web_view/apitest";
StartTestServer(app_location);
« no previous file with comments | « content/test/data/data_url_navigations.html ('k') | extensions/test/data/web_view/apitest/guest_data_url.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698