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

Unified Diff: content/browser/security_exploit_browsertest.cc

Issue 2478803003: Remove DOMAutomationController::automation_id_ (Closed)
Patch Set: More of: Fixing issues caught by extra |expected_response| checks in ExecuteScript function. Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/security_exploit_browsertest.cc
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc
index d1450aeb5ac20f752e81ed28aece5b87e96b48fb..0d9f5c53fd2b09abba2b686e03806dbc507013bd 100644
--- a/content/browser/security_exploit_browsertest.cc
+++ b/content/browser/security_exploit_browsertest.cc
@@ -402,8 +402,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\");"));
+ ExecuteUnmodifiedScript(interstitial_page->GetMainFrame(),
+ "window.domAutomationController.send(\"okay2\");");
ASSERT_TRUE(message_queue.WaitForMessage(&message));
ASSERT_EQ("\"okay2\"", message);
ASSERT_EQ("\"okay2\"", interstitial->last_command());

Powered by Google App Engine
This is Rietveld 408576698