| Index: content/browser/site_per_process_browsertest.cc
|
| diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
|
| index 37978b53d46c6f7d4accb8a2f205ea2b3e26b5d2..78de53b722008d758cbb56ab637e2d5dd001299b 100644
|
| --- a/content/browser/site_per_process_browsertest.cc
|
| +++ b/content/browser/site_per_process_browsertest.cc
|
| @@ -7030,6 +7030,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
|
| "parent.location = '%s');",
|
| b_url.spec().c_str());
|
|
|
| + // Ensure the child has received a user gesture, so that it has permission
|
| + // to framebust.
|
| + SimulateMouseClick(
|
| + root->child_at(0)->current_frame_host()->GetRenderWidgetHost(), 1, 1);
|
| TestFrameNavigationObserver frame_observer(root);
|
| EXPECT_TRUE(ExecuteScript(root->child_at(0), script));
|
| frame_observer.Wait();
|
|
|