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

Side by Side Diff: content/browser/frame_host/render_frame_host_manager_unittest.cc

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments 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 "content/browser/frame_host/render_frame_host_manager.h" 5 #include "content/browser/frame_host/render_frame_host_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <tuple> 9 #include <tuple>
10 #include <utility> 10 #include <utility>
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 // http://crbug.com/444955. 1939 // http://crbug.com/444955.
1940 TEST_F(RenderFrameHostManagerTestWithSiteIsolation, DetachPendingChild) { 1940 TEST_F(RenderFrameHostManagerTestWithSiteIsolation, DetachPendingChild) {
1941 const GURL kUrlA("http://www.google.com/"); 1941 const GURL kUrlA("http://www.google.com/");
1942 const GURL kUrlB("http://webkit.org/"); 1942 const GURL kUrlB("http://webkit.org/");
1943 1943
1944 // Create a page with two child frames. 1944 // Create a page with two child frames.
1945 contents()->NavigateAndCommit(kUrlA); 1945 contents()->NavigateAndCommit(kUrlA);
1946 contents()->GetMainFrame()->OnCreateChildFrame( 1946 contents()->GetMainFrame()->OnCreateChildFrame(
1947 contents()->GetMainFrame()->GetProcess()->GetNextRoutingID(), 1947 contents()->GetMainFrame()->GetProcess()->GetNextRoutingID(),
1948 blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName1", 1948 blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName1",
1949 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 1949 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
1950 FrameOwnerProperties());
1950 contents()->GetMainFrame()->OnCreateChildFrame( 1951 contents()->GetMainFrame()->OnCreateChildFrame(
1951 contents()->GetMainFrame()->GetProcess()->GetNextRoutingID(), 1952 contents()->GetMainFrame()->GetProcess()->GetNextRoutingID(),
1952 blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName2", 1953 blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName2",
1953 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 1954 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
1955 FrameOwnerProperties());
1954 RenderFrameHostManager* root_manager = 1956 RenderFrameHostManager* root_manager =
1955 contents()->GetFrameTree()->root()->render_manager(); 1957 contents()->GetFrameTree()->root()->render_manager();
1956 RenderFrameHostManager* iframe1 = 1958 RenderFrameHostManager* iframe1 =
1957 contents()->GetFrameTree()->root()->child_at(0)->render_manager(); 1959 contents()->GetFrameTree()->root()->child_at(0)->render_manager();
1958 RenderFrameHostManager* iframe2 = 1960 RenderFrameHostManager* iframe2 =
1959 contents()->GetFrameTree()->root()->child_at(1)->render_manager(); 1961 contents()->GetFrameTree()->root()->child_at(1)->render_manager();
1960 1962
1961 // 1) The first navigation. 1963 // 1) The first navigation.
1962 NavigationEntryImpl entryA(NULL /* instance */, kUrlA, 1964 NavigationEntryImpl entryA(NULL /* instance */, kUrlA,
1963 Referrer(), base::string16() /* title */, 1965 Referrer(), base::string16() /* title */,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 // Reload |contents1|. 2080 // Reload |contents1|.
2079 contents1->NavigateAndCommit(kUrl1); 2081 contents1->NavigateAndCommit(kUrl1);
2080 EXPECT_TRUE(contents1->GetMainFrame()->IsRenderFrameLive()); 2082 EXPECT_TRUE(contents1->GetMainFrame()->IsRenderFrameLive());
2081 EXPECT_FALSE(contents2->GetMainFrame()->IsRenderFrameLive()); 2083 EXPECT_FALSE(contents2->GetMainFrame()->IsRenderFrameLive());
2082 EXPECT_EQ(contents1->GetSiteInstance(), contents2->GetSiteInstance()); 2084 EXPECT_EQ(contents1->GetSiteInstance(), contents2->GetSiteInstance());
2083 2085
2084 // |contents1| creates an out of process iframe. 2086 // |contents1| creates an out of process iframe.
2085 contents1->GetMainFrame()->OnCreateChildFrame( 2087 contents1->GetMainFrame()->OnCreateChildFrame(
2086 contents1->GetMainFrame()->GetProcess()->GetNextRoutingID(), 2088 contents1->GetMainFrame()->GetProcess()->GetNextRoutingID(),
2087 blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName1", 2089 blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName1",
2088 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 2090 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
2091 FrameOwnerProperties());
2089 RenderFrameHostManager* iframe = 2092 RenderFrameHostManager* iframe =
2090 contents()->GetFrameTree()->root()->child_at(0)->render_manager(); 2093 contents()->GetFrameTree()->root()->child_at(0)->render_manager();
2091 NavigationEntryImpl entry(NULL /* instance */, kUrl2, 2094 NavigationEntryImpl entry(NULL /* instance */, kUrl2,
2092 Referrer(kUrl1, blink::kWebReferrerPolicyDefault), 2095 Referrer(kUrl1, blink::kWebReferrerPolicyDefault),
2093 base::string16() /* title */, 2096 base::string16() /* title */,
2094 ui::PAGE_TRANSITION_LINK, 2097 ui::PAGE_TRANSITION_LINK,
2095 false /* is_renderer_init */); 2098 false /* is_renderer_init */);
2096 RenderFrameHostImpl* cross_site = NavigateToEntry(iframe, entry); 2099 RenderFrameHostImpl* cross_site = NavigateToEntry(iframe, entry);
2097 iframe->DidNavigateFrame(cross_site, true); 2100 iframe->DidNavigateFrame(cross_site, true);
2098 2101
(...skipping 28 matching lines...) Expand all
2127 // Make sure the initial process is live so that the pending WebUI navigation 2130 // Make sure the initial process is live so that the pending WebUI navigation
2128 // does not commit immediately. Give the page a subframe as well. 2131 // does not commit immediately. Give the page a subframe as well.
2129 const GURL kUrl1("http://foo.com"); 2132 const GURL kUrl1("http://foo.com");
2130 RenderFrameHostImpl* main_rfh = contents()->GetMainFrame(); 2133 RenderFrameHostImpl* main_rfh = contents()->GetMainFrame();
2131 NavigateAndCommit(kUrl1); 2134 NavigateAndCommit(kUrl1);
2132 EXPECT_TRUE(main_rfh->render_view_host()->IsRenderViewLive()); 2135 EXPECT_TRUE(main_rfh->render_view_host()->IsRenderViewLive());
2133 EXPECT_TRUE(main_rfh->IsRenderFrameLive()); 2136 EXPECT_TRUE(main_rfh->IsRenderFrameLive());
2134 main_rfh->OnCreateChildFrame( 2137 main_rfh->OnCreateChildFrame(
2135 main_rfh->GetProcess()->GetNextRoutingID(), 2138 main_rfh->GetProcess()->GetNextRoutingID(),
2136 blink::WebTreeScopeType::kDocument, std::string(), "uniqueName1", 2139 blink::WebTreeScopeType::kDocument, std::string(), "uniqueName1",
2137 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 2140 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
2141 FrameOwnerProperties());
2138 RenderFrameHostManager* subframe_rfhm = 2142 RenderFrameHostManager* subframe_rfhm =
2139 contents()->GetFrameTree()->root()->child_at(0)->render_manager(); 2143 contents()->GetFrameTree()->root()->child_at(0)->render_manager();
2140 2144
2141 // Start a pending WebUI navigation in the main frame and verify that the 2145 // Start a pending WebUI navigation in the main frame and verify that the
2142 // pending RVH has bindings. 2146 // pending RVH has bindings.
2143 const GURL kWebUIUrl("chrome://foo"); 2147 const GURL kWebUIUrl("chrome://foo");
2144 NavigationEntryImpl webui_entry( 2148 NavigationEntryImpl webui_entry(
2145 nullptr /* instance */, kWebUIUrl, Referrer(), 2149 nullptr /* instance */, kWebUIUrl, Referrer(),
2146 base::string16() /* title */, ui::PAGE_TRANSITION_TYPED, 2150 base::string16() /* title */, ui::PAGE_TRANSITION_TYPED,
2147 false /* is_renderer_init */); 2151 false /* is_renderer_init */);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 // root3) should be put on the list of nodes that will need their frame openers 2289 // root3) should be put on the list of nodes that will need their frame openers
2286 // set separately in a second pass, since their opener routing IDs won't be 2290 // set separately in a second pass, since their opener routing IDs won't be
2287 // available during the first pass of CreateOpenerProxies. 2291 // available during the first pass of CreateOpenerProxies.
2288 TEST_F(RenderFrameHostManagerTest, TraverseComplexOpenerChain) { 2292 TEST_F(RenderFrameHostManagerTest, TraverseComplexOpenerChain) {
2289 contents()->NavigateAndCommit(GURL("http://tab1.com")); 2293 contents()->NavigateAndCommit(GURL("http://tab1.com"));
2290 FrameTree* tree1 = contents()->GetFrameTree(); 2294 FrameTree* tree1 = contents()->GetFrameTree();
2291 FrameTreeNode* root1 = tree1->root(); 2295 FrameTreeNode* root1 = tree1->root();
2292 int process_id = root1->current_frame_host()->GetProcess()->GetID(); 2296 int process_id = root1->current_frame_host()->GetProcess()->GetID();
2293 tree1->AddFrame(root1, process_id, 12, blink::WebTreeScopeType::kDocument, 2297 tree1->AddFrame(root1, process_id, 12, blink::WebTreeScopeType::kDocument,
2294 std::string(), "uniqueName0", blink::WebSandboxFlags::kNone, 2298 std::string(), "uniqueName0", blink::WebSandboxFlags::kNone,
2295 FrameOwnerProperties()); 2299 ParsedFeaturePolicyHeader(), FrameOwnerProperties());
2296 tree1->AddFrame(root1, process_id, 13, blink::WebTreeScopeType::kDocument, 2300 tree1->AddFrame(root1, process_id, 13, blink::WebTreeScopeType::kDocument,
2297 std::string(), "uniqueName1", blink::WebSandboxFlags::kNone, 2301 std::string(), "uniqueName1", blink::WebSandboxFlags::kNone,
2298 FrameOwnerProperties()); 2302 ParsedFeaturePolicyHeader(), FrameOwnerProperties());
2299 2303
2300 std::unique_ptr<TestWebContents> tab2( 2304 std::unique_ptr<TestWebContents> tab2(
2301 TestWebContents::Create(browser_context(), nullptr)); 2305 TestWebContents::Create(browser_context(), nullptr));
2302 tab2->NavigateAndCommit(GURL("http://tab2.com")); 2306 tab2->NavigateAndCommit(GURL("http://tab2.com"));
2303 FrameTree* tree2 = tab2->GetFrameTree(); 2307 FrameTree* tree2 = tab2->GetFrameTree();
2304 FrameTreeNode* root2 = tree2->root(); 2308 FrameTreeNode* root2 = tree2->root();
2305 process_id = root2->current_frame_host()->GetProcess()->GetID(); 2309 process_id = root2->current_frame_host()->GetProcess()->GetID();
2306 tree2->AddFrame(root2, process_id, 22, blink::WebTreeScopeType::kDocument, 2310 tree2->AddFrame(root2, process_id, 22, blink::WebTreeScopeType::kDocument,
2307 std::string(), "uniqueName2", blink::WebSandboxFlags::kNone, 2311 std::string(), "uniqueName2", blink::WebSandboxFlags::kNone,
2308 FrameOwnerProperties()); 2312 ParsedFeaturePolicyHeader(), FrameOwnerProperties());
2309 tree2->AddFrame(root2, process_id, 23, blink::WebTreeScopeType::kDocument, 2313 tree2->AddFrame(root2, process_id, 23, blink::WebTreeScopeType::kDocument,
2310 std::string(), "uniqueName3", blink::WebSandboxFlags::kNone, 2314 std::string(), "uniqueName3", blink::WebSandboxFlags::kNone,
2311 FrameOwnerProperties()); 2315 ParsedFeaturePolicyHeader(), FrameOwnerProperties());
2312 2316
2313 std::unique_ptr<TestWebContents> tab3( 2317 std::unique_ptr<TestWebContents> tab3(
2314 TestWebContents::Create(browser_context(), nullptr)); 2318 TestWebContents::Create(browser_context(), nullptr));
2315 FrameTree* tree3 = tab3->GetFrameTree(); 2319 FrameTree* tree3 = tab3->GetFrameTree();
2316 FrameTreeNode* root3 = tree3->root(); 2320 FrameTreeNode* root3 = tree3->root();
2317 2321
2318 std::unique_ptr<TestWebContents> tab4( 2322 std::unique_ptr<TestWebContents> tab4(
2319 TestWebContents::Create(browser_context(), nullptr)); 2323 TestWebContents::Create(browser_context(), nullptr));
2320 tab4->NavigateAndCommit(GURL("http://tab4.com")); 2324 tab4->NavigateAndCommit(GURL("http://tab4.com"));
2321 FrameTree* tree4 = tab4->GetFrameTree(); 2325 FrameTree* tree4 = tab4->GetFrameTree();
2322 FrameTreeNode* root4 = tree4->root(); 2326 FrameTreeNode* root4 = tree4->root();
2323 process_id = root4->current_frame_host()->GetProcess()->GetID(); 2327 process_id = root4->current_frame_host()->GetProcess()->GetID();
2324 tree4->AddFrame(root4, process_id, 42, blink::WebTreeScopeType::kDocument, 2328 tree4->AddFrame(root4, process_id, 42, blink::WebTreeScopeType::kDocument,
2325 std::string(), "uniqueName4", blink::WebSandboxFlags::kNone, 2329 std::string(), "uniqueName4", blink::WebSandboxFlags::kNone,
2326 FrameOwnerProperties()); 2330 ParsedFeaturePolicyHeader(), FrameOwnerProperties());
2327 2331
2328 root1->child_at(1)->SetOpener(root1->child_at(1)); 2332 root1->child_at(1)->SetOpener(root1->child_at(1));
2329 root1->SetOpener(root2->child_at(1)); 2333 root1->SetOpener(root2->child_at(1));
2330 root2->SetOpener(root3); 2334 root2->SetOpener(root3);
2331 root2->child_at(0)->SetOpener(root4); 2335 root2->child_at(0)->SetOpener(root4);
2332 root2->child_at(1)->SetOpener(root4); 2336 root2->child_at(1)->SetOpener(root4);
2333 root4->child_at(0)->SetOpener(root3); 2337 root4->child_at(0)->SetOpener(root3);
2334 2338
2335 std::vector<FrameTree*> opener_frame_trees; 2339 std::vector<FrameTree*> opener_frame_trees;
2336 base::hash_set<FrameTreeNode*> nodes_with_back_links; 2340 base::hash_set<FrameTreeNode*> nodes_with_back_links;
(...skipping 28 matching lines...) Expand all
2365 const GURL kUrlA("http://a.com/"); 2369 const GURL kUrlA("http://a.com/");
2366 const GURL kUrlB("http://b.com/"); 2370 const GURL kUrlB("http://b.com/");
2367 const GURL kUrlC("http://c.com/"); 2371 const GURL kUrlC("http://c.com/");
2368 2372
2369 // Set up a page at a.com with three subframes: two for b.com and one for 2373 // Set up a page at a.com with three subframes: two for b.com and one for
2370 // c.com. 2374 // c.com.
2371 contents()->NavigateAndCommit(kUrlA); 2375 contents()->NavigateAndCommit(kUrlA);
2372 main_test_rfh()->OnCreateChildFrame( 2376 main_test_rfh()->OnCreateChildFrame(
2373 main_test_rfh()->GetProcess()->GetNextRoutingID(), 2377 main_test_rfh()->GetProcess()->GetNextRoutingID(),
2374 blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1", 2378 blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1",
2375 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 2379 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
2380 FrameOwnerProperties());
2376 main_test_rfh()->OnCreateChildFrame( 2381 main_test_rfh()->OnCreateChildFrame(
2377 main_test_rfh()->GetProcess()->GetNextRoutingID(), 2382 main_test_rfh()->GetProcess()->GetNextRoutingID(),
2378 blink::WebTreeScopeType::kDocument, "frame2", "uniqueName2", 2383 blink::WebTreeScopeType::kDocument, "frame2", "uniqueName2",
2379 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 2384 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
2385 FrameOwnerProperties());
2380 main_test_rfh()->OnCreateChildFrame( 2386 main_test_rfh()->OnCreateChildFrame(
2381 main_test_rfh()->GetProcess()->GetNextRoutingID(), 2387 main_test_rfh()->GetProcess()->GetNextRoutingID(),
2382 blink::WebTreeScopeType::kDocument, "frame3", "uniqueName3", 2388 blink::WebTreeScopeType::kDocument, "frame3", "uniqueName3",
2383 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 2389 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
2390 FrameOwnerProperties());
2384 2391
2385 FrameTreeNode* root = contents()->GetFrameTree()->root(); 2392 FrameTreeNode* root = contents()->GetFrameTree()->root();
2386 RenderFrameHostManager* child1 = root->child_at(0)->render_manager(); 2393 RenderFrameHostManager* child1 = root->child_at(0)->render_manager();
2387 RenderFrameHostManager* child2 = root->child_at(1)->render_manager(); 2394 RenderFrameHostManager* child2 = root->child_at(1)->render_manager();
2388 RenderFrameHostManager* child3 = root->child_at(2)->render_manager(); 2395 RenderFrameHostManager* child3 = root->child_at(2)->render_manager();
2389 2396
2390 // Navigate first two subframes to B. 2397 // Navigate first two subframes to B.
2391 NavigationEntryImpl entryB(nullptr /* instance */, kUrlB, 2398 NavigationEntryImpl entryB(nullptr /* instance */, kUrlB,
2392 Referrer(kUrlA, blink::kWebReferrerPolicyDefault), 2399 Referrer(kUrlA, blink::kWebReferrerPolicyDefault),
2393 base::string16() /* title */, 2400 base::string16() /* title */,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 2470
2464 const GURL kUrlA("http://a.com/"); 2471 const GURL kUrlA("http://a.com/");
2465 const GURL kUrlB("http://b.com/"); 2472 const GURL kUrlB("http://b.com/");
2466 const GURL kUrlC("http://c.com/"); 2473 const GURL kUrlC("http://c.com/");
2467 2474
2468 // Set up a page at a.com with a b.com subframe. 2475 // Set up a page at a.com with a b.com subframe.
2469 contents()->NavigateAndCommit(kUrlA); 2476 contents()->NavigateAndCommit(kUrlA);
2470 main_test_rfh()->OnCreateChildFrame( 2477 main_test_rfh()->OnCreateChildFrame(
2471 main_test_rfh()->GetProcess()->GetNextRoutingID(), 2478 main_test_rfh()->GetProcess()->GetNextRoutingID(),
2472 blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1", 2479 blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1",
2473 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 2480 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
2481 FrameOwnerProperties());
2474 2482
2475 FrameTreeNode* root = contents()->GetFrameTree()->root(); 2483 FrameTreeNode* root = contents()->GetFrameTree()->root();
2476 RenderFrameHostManager* child = root->child_at(0)->render_manager(); 2484 RenderFrameHostManager* child = root->child_at(0)->render_manager();
2477 2485
2478 // Navigate subframe to B. 2486 // Navigate subframe to B.
2479 NavigationEntryImpl entryB(nullptr /* instance */, kUrlB, 2487 NavigationEntryImpl entryB(nullptr /* instance */, kUrlB,
2480 Referrer(kUrlA, blink::kWebReferrerPolicyDefault), 2488 Referrer(kUrlA, blink::kWebReferrerPolicyDefault),
2481 base::string16() /* title */, 2489 base::string16() /* title */,
2482 ui::PAGE_TRANSITION_LINK, 2490 ui::PAGE_TRANSITION_LINK,
2483 false /* is_renderer_init */); 2491 false /* is_renderer_init */);
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
3007 const GURL kUrl1("http://www.google.test"); 3015 const GURL kUrl1("http://www.google.test");
3008 const GURL kUrl2("http://www.google2.test"); 3016 const GURL kUrl2("http://www.google2.test");
3009 const GURL kUrl3("http://www.google2.test/foo"); 3017 const GURL kUrl3("http://www.google2.test/foo");
3010 3018
3011 contents()->NavigateAndCommit(kUrl1); 3019 contents()->NavigateAndCommit(kUrl1);
3012 3020
3013 // Create a child frame and navigate it cross-site. 3021 // Create a child frame and navigate it cross-site.
3014 main_test_rfh()->OnCreateChildFrame( 3022 main_test_rfh()->OnCreateChildFrame(
3015 main_test_rfh()->GetProcess()->GetNextRoutingID(), 3023 main_test_rfh()->GetProcess()->GetNextRoutingID(),
3016 blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1", 3024 blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1",
3017 blink::WebSandboxFlags::kNone, FrameOwnerProperties()); 3025 blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(),
3026 FrameOwnerProperties());
3018 3027
3019 FrameTreeNode* root = contents()->GetFrameTree()->root(); 3028 FrameTreeNode* root = contents()->GetFrameTree()->root();
3020 RenderFrameHostManager* child = root->child_at(0)->render_manager(); 3029 RenderFrameHostManager* child = root->child_at(0)->render_manager();
3021 3030
3022 // Navigate subframe to kUrl2. 3031 // Navigate subframe to kUrl2.
3023 NavigationEntryImpl entry1(nullptr /* instance */, kUrl2, 3032 NavigationEntryImpl entry1(nullptr /* instance */, kUrl2,
3024 Referrer(kUrl1, blink::kWebReferrerPolicyDefault), 3033 Referrer(kUrl1, blink::kWebReferrerPolicyDefault),
3025 base::string16() /* title */, 3034 base::string16() /* title */,
3026 ui::PAGE_TRANSITION_LINK, 3035 ui::PAGE_TRANSITION_LINK,
3027 false /* is_renderer_init */); 3036 false /* is_renderer_init */);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3152 ASSERT_FALSE(delete_observer.deleted()); 3161 ASSERT_FALSE(delete_observer.deleted());
3153 EXPECT_FALSE(initial_rfh->is_active()); 3162 EXPECT_FALSE(initial_rfh->is_active());
3154 3163
3155 // The initial RFH receives a DidStartProvisionalLoad IPC. It should not 3164 // The initial RFH receives a DidStartProvisionalLoad IPC. It should not
3156 // create a NavigationHandle. 3165 // create a NavigationHandle.
3157 initial_rfh->SimulateNavigationStart(kUrl3); 3166 initial_rfh->SimulateNavigationStart(kUrl3);
3158 EXPECT_FALSE(initial_rfh->navigation_handle()); 3167 EXPECT_FALSE(initial_rfh->navigation_handle());
3159 } 3168 }
3160 3169
3161 } // namespace content 3170 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/frame_host/render_frame_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698