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

Unified Diff: content/browser/find_request_manager_browsertest.cc

Issue 2528813002: Fix Self-Referencing OOPIF Infinite Loop (Closed)
Patch Set: add fix to find and renderframe tests Created 4 years 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/find_request_manager_browsertest.cc
diff --git a/content/browser/find_request_manager_browsertest.cc b/content/browser/find_request_manager_browsertest.cc
index 68027ab4c988fa68098c4b648484a65592a3de58..afa4e47c59b8ecf4ad29f15a0ad992844e62e645 100644
--- a/content/browser/find_request_manager_browsertest.cc
+++ b/content/browser/find_request_manager_browsertest.cc
@@ -319,22 +319,21 @@ class FindRequestManagerTest : public ContentBrowserTest,
return;
std::string hostname = root->current_origin().host();
- if (cross_process)
alexmos 2016/12/28 00:25:59 Can you explain why this change is needed? I reme
davidsac (gone - try alexmos) 2017/01/03 19:29:35 Sorry for the miscommunication. I sent a descript
alexmos 2017/01/03 22:12:05 Ah, yes, I missed your explanation in the initial
davidsac (gone - try alexmos) 2017/01/03 23:14:18 That is a good point. Let me know which approach
alexmos 2017/01/04 22:35:10 Let's go with option (2), since we've confirmed wi
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
hostname.insert(0, 1, 'a');
- GURL url(embedded_test_server()->GetURL(hostname,
- "/find_in_page_multi_frame.html"));
+ GURL url(embedded_test_server()->GetURL(
alexmos 2016/12/28 00:25:59 Please fix the indent in lines 322-336.
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
+ hostname, "/find_in_page_multi_frame.html"));
- TestNavigationObserver observer(shell()->web_contents());
+ TestNavigationObserver observer(shell()->web_contents());
- FrameTreeNode* child = root->child_at(0);
- NavigateFrameToURL(child, url);
- EXPECT_TRUE(observer.last_navigation_succeeded());
- LoadMultiFramePageChildFrames(height - 1, cross_process, child);
+ FrameTreeNode* child = root->child_at(0);
+ NavigateFrameToURL(child, url);
+ EXPECT_TRUE(observer.last_navigation_succeeded());
+ LoadMultiFramePageChildFrames(height - 1, cross_process, child);
- child = root->child_at(1);
- NavigateFrameToURL(child, url);
- EXPECT_TRUE(observer.last_navigation_succeeded());
- LoadMultiFramePageChildFrames(height - 1, cross_process, child);
+ child = root->child_at(1);
+ NavigateFrameToURL(child, url);
+ EXPECT_TRUE(observer.last_navigation_succeeded());
+ LoadMultiFramePageChildFrames(height - 1, cross_process, child);
}
TestWebContentsDelegate test_delegate_;
@@ -573,6 +572,7 @@ IN_PROC_BROWSER_TEST_P(FindRequestManagerTest, MAYBE(NavigateFrame)) {
delegate()->WaitForFinalReply();
FindResults results = delegate()->GetFindResults();
+
alexmos 2016/12/28 00:25:58 new blank line not needed
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
EXPECT_EQ(last_request_id(), results.request_id);
EXPECT_EQ(21, results.number_of_matches);
EXPECT_EQ(19, results.active_match_ordinal);

Powered by Google App Engine
This is Rietveld 408576698