Index: content/browser/security_exploit_browsertest.cc |
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc |
index be380107a38cee2187d460210a609855ad89ddd9..57cefadb2fce1c6f0342122c270b8de5f8ace5b9 100644 |
--- a/content/browser/security_exploit_browsertest.cc |
+++ b/content/browser/security_exploit_browsertest.cc |
@@ -420,8 +420,8 @@ IN_PROC_BROWSER_TEST_F(SecurityExploitBrowserTest, |
// Send a second message from the interstitial page, and make sure that the |
// "evil" message doesn't arrive in the intervening period. |
- ASSERT_TRUE(ExecuteScript(interstitial_page->GetMainFrame(), |
- "window.domAutomationController.send(\"okay2\");")); |
+ ExecuteScriptAsync(interstitial_page->GetMainFrame(), |
+ "window.domAutomationController.send(\"okay2\");"); |
ASSERT_TRUE(message_queue.WaitForMessage(&message)); |
ASSERT_EQ("\"okay2\"", message); |
ASSERT_EQ("\"okay2\"", interstitial->last_command()); |