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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2907663004: FrameTree::Find only searches relative to local frames. (Closed)
Patch Set: Rebasing... Created 3 years, 7 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: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index ef3de09c66c6154c9442df1d6f2f12412d9e0a6a..2b9f1bb7df136e13f6dfd216a426186ce8e1f286 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -155,6 +155,7 @@
#include "v8/include/v8.h"
#include "web/TextFinder.h"
#include "web/WebRemoteFrameImpl.h"
+#include "web/WebViewImpl.h"
#include "web/tests/FrameTestHelpers.h"
#include "web/tests/sim/SimDisplayItemList.h"
#include "web/tests/sim/SimRequest.h"
@@ -4379,8 +4380,9 @@ TEST_P(ParameterizedWebFrameTest, IframeRedirect) {
FrameTestHelpers::PumpPendingRequestsForFrameToLoad(
web_view_helper.WebView()->MainFrame());
- WebFrame* iframe = web_view_helper.WebView()->FindFrameByName(
- WebString::FromUTF8("ifr"), nullptr);
+ WebFrame* iframe =
+ web_view_helper.WebView()->MainFrameImpl()->FindFrameByName(
+ WebString::FromUTF8("ifr"));
ASSERT_TRUE(iframe);
WebDataSource* iframe_data_source = iframe->DataSource();
ASSERT_TRUE(iframe_data_source);
« no previous file with comments | « third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698