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

Unified Diff: content/browser/security_exploit_browsertest.cc

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 years, 6 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 e225045e0a0e8856ab2ea973ea552bbaa44d50b8..a7ba3d7eb8505f8a181cf266839e11dfee5201a8 100644
--- a/content/browser/security_exploit_browsertest.cc
+++ b/content/browser/security_exploit_browsertest.cc
@@ -72,8 +72,7 @@ RenderViewHostImpl* PrepareToDuplicateHosts(Shell* shell,
// Open another window, so we generate some more routing ids.
ShellAddedObserver shell2_observer;
- EXPECT_TRUE(ExecuteScript(
- shell->web_contents(), "window.open(document.URL + '#2');"));
+ EXPECT_TRUE(ExecuteScript(shell, "window.open(document.URL + '#2');"));
Shell* shell2 = shell2_observer.GetShell();
// The new window must be in the same process, but have a new routing id.

Powered by Google App Engine
This is Rietveld 408576698