OLD | NEW |
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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/feature_list.h" | 7 #include "base/feature_list.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 TestRenderFrameHost* subframe_rfh = | 1305 TestRenderFrameHost* subframe_rfh = |
1306 contents()->GetMainFrame()->AppendChild("child"); | 1306 contents()->GetMainFrame()->AppendChild("child"); |
1307 // Simulate the navigation triggered by inserting a child frame into a page. | 1307 // Simulate the navigation triggered by inserting a child frame into a page. |
1308 FrameHostMsg_DidCommitProvisionalLoad_Params params; | 1308 FrameHostMsg_DidCommitProvisionalLoad_Params params; |
1309 InitNavigateParams(¶ms, 1, false, kUrl2, | 1309 InitNavigateParams(¶ms, 1, false, kUrl2, |
1310 ui::PAGE_TRANSITION_AUTO_SUBFRAME); | 1310 ui::PAGE_TRANSITION_AUTO_SUBFRAME); |
1311 subframe_rfh->SendNavigateWithParams(¶ms); | 1311 subframe_rfh->SendNavigateWithParams(¶ms); |
1312 | 1312 |
1313 FeaturePolicy* subframe_feature_policy = subframe_rfh->feature_policy(); | 1313 FeaturePolicy* subframe_feature_policy = subframe_rfh->feature_policy(); |
1314 ASSERT_TRUE(subframe_feature_policy); | 1314 ASSERT_TRUE(subframe_feature_policy); |
1315 ASSERT_FALSE(subframe_feature_policy->origin_.unique()); | 1315 ASSERT_FALSE(subframe_feature_policy->origin_.opaque()); |
1316 } | 1316 } |
1317 | 1317 |
1318 } // namespace content | 1318 } // namespace content |
OLD | NEW |