| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 params.url = url; | 535 params.url = url; |
| 536 params.transition = ui::PAGE_TRANSITION_LINK; | 536 params.transition = ui::PAGE_TRANSITION_LINK; |
| 537 params.should_update_history = false; | 537 params.should_update_history = false; |
| 538 params.gesture = NavigationGestureAuto; | 538 params.gesture = NavigationGestureAuto; |
| 539 params.was_within_same_page = false; | 539 params.was_within_same_page = false; |
| 540 params.method = "GET"; | 540 params.method = "GET"; |
| 541 params.page_state = PageState::CreateFromURL(url); | 541 params.page_state = PageState::CreateFromURL(url); |
| 542 params.origin = url::Origin(GURL("http://bar.com/")); | 542 params.origin = url::Origin(GURL("http://bar.com/")); |
| 543 | 543 |
| 544 FrameHostMsg_DidCommitProvisionalLoad msg( | 544 FrameHostMsg_DidCommitProvisionalLoad msg( |
| 545 root->current_frame_host()->routing_id(), params); | 545 root->current_frame_host()->routing_id(), params, nullptr); |
| 546 IPC::IpcSecurityTestUtil::PwnMessageReceived( | 546 IPC::IpcSecurityTestUtil::PwnMessageReceived( |
| 547 root->current_frame_host()->GetProcess()->GetChannel(), msg); | 547 root->current_frame_host()->GetProcess()->GetChannel(), msg); |
| 548 | 548 |
| 549 // When the IPC message is received and validation fails, the process is | 549 // When the IPC message is received and validation fails, the process is |
| 550 // terminated. However, the notification for that should be processed in a | 550 // terminated. However, the notification for that should be processed in a |
| 551 // separate task of the message loop, so ensure that the process is still | 551 // separate task of the message loop, so ensure that the process is still |
| 552 // considered alive. | 552 // considered alive. |
| 553 EXPECT_TRUE(root->current_frame_host()->GetProcess()->HasConnection()); | 553 EXPECT_TRUE(root->current_frame_host()->GetProcess()->HasConnection()); |
| 554 | 554 |
| 555 exit_observer.Wait(); | 555 exit_observer.Wait(); |
| 556 EXPECT_FALSE(exit_observer.did_exit_normally()); | 556 EXPECT_FALSE(exit_observer.did_exit_normally()); |
| 557 ResourceDispatcherHost::Get()->SetDelegate(nullptr); | 557 ResourceDispatcherHost::Get()->SetDelegate(nullptr); |
| 558 } | 558 } |
| 559 | 559 |
| 560 } // namespace content | 560 } // namespace content |
| OLD | NEW |