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

Side by Side Diff: content/browser/security_exploit_browsertest.cc

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698