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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_apitest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/guest_view/web_view/web_view_apitest.h" 5 #include "extensions/browser/guest_view/web_view/web_view_apitest.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 611
612 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNavigateAfterResize) { 612 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNavigateAfterResize) {
613 RunTest("testNavigateAfterResize", "web_view/apitest"); 613 RunTest("testNavigateAfterResize", "web_view/apitest");
614 } 614 }
615 615
616 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNavigationToExternalProtocol) { 616 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNavigationToExternalProtocol) {
617 RunTest("testNavigationToExternalProtocol", "web_view/apitest"); 617 RunTest("testNavigationToExternalProtocol", "web_view/apitest");
618 } 618 }
619 619
620 IN_PROC_BROWSER_TEST_F(WebViewAPITest, 620 IN_PROC_BROWSER_TEST_F(WebViewAPITest,
621 TestContentInitiatedNavigationToDataUrlBlocked) {
622 RunTest("testContentInitiatedNavigationToDataUrlBlocked", "web_view/apitest");
623 }
624
625 IN_PROC_BROWSER_TEST_F(WebViewAPITest,
621 TestNavOnConsecutiveSrcAttributeChanges) { 626 TestNavOnConsecutiveSrcAttributeChanges) {
622 RunTest("testNavOnConsecutiveSrcAttributeChanges", "web_view/apitest"); 627 RunTest("testNavOnConsecutiveSrcAttributeChanges", "web_view/apitest");
623 } 628 }
624 629
625 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNavOnSrcAttributeChange) { 630 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNavOnSrcAttributeChange) {
626 RunTest("testNavOnSrcAttributeChange", "web_view/apitest"); 631 RunTest("testNavOnSrcAttributeChange", "web_view/apitest");
627 } 632 }
628 633
629 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) { 634 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) {
630 std::string app_location = "web_view/apitest"; 635 std::string app_location = "web_view/apitest";
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 // This test verifies that webview.contentWindow works inside an iframe 765 // This test verifies that webview.contentWindow works inside an iframe
761 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { 766 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) {
762 LaunchApp("web_view/inside_iframe"); 767 LaunchApp("web_view/inside_iframe");
763 } 768 }
764 769
765 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { 770 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) {
766 RunTest("testCaptureVisibleRegion", "web_view/apitest"); 771 RunTest("testCaptureVisibleRegion", "web_view/apitest");
767 } 772 }
768 773
769 } // namespace extensions 774 } // namespace extensions
OLDNEW
« no previous file with comments | « content/test/data/data_url_navigations.html ('k') | extensions/test/data/web_view/apitest/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698