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

Unified Diff: content/browser/renderer_host/render_view_host_unittest.cc

Issue 11416121: Prevent cross-site pages when --site-per-process is passed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 1 month 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: content/browser/renderer_host/render_view_host_unittest.cc
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc
index b7d55447ed5d0b63cc358ea7d51f99fc5c7fc4fd..f37d7f78b5fbc8422a34107e0c8416ad8a0fab3c 100644
--- a/content/browser/renderer_host/render_view_host_unittest.cc
+++ b/content/browser/renderer_host/render_view_host_unittest.cc
@@ -176,11 +176,14 @@ TEST_F(RenderViewHostTest, DragEnteredFileURLsStillBlocked) {
ChildProcessSecurityPolicyImpl* policy =
ChildProcessSecurityPolicyImpl::GetInstance();
- EXPECT_FALSE(policy->CanRequestURL(id, highlighted_file_url));
+ EXPECT_FALSE(policy->CanRequestURL(id, highlighted_file_url,
+ ResourceType::MAIN_FRAME));
EXPECT_FALSE(policy->CanReadFile(id, highlighted_file_path));
- EXPECT_TRUE(policy->CanRequestURL(id, dragged_file_url));
+ EXPECT_TRUE(policy->CanRequestURL(id, dragged_file_url,
+ ResourceType::MAIN_FRAME));
EXPECT_TRUE(policy->CanReadFile(id, dragged_file_path));
- EXPECT_FALSE(policy->CanRequestURL(id, sensitive_file_url));
+ EXPECT_FALSE(policy->CanRequestURL(id, sensitive_file_url,
+ ResourceType::MAIN_FRAME));
EXPECT_FALSE(policy->CanReadFile(id, sensitive_file_path));
}

Powered by Google App Engine
This is Rietveld 408576698