Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 2d836ae64efb30d8d764cc3a251f32354adf4472..181628cc2773cc566094fc7a57d7f25a5fe1dd99 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -3575,9 +3575,7 @@ TEST_F(WebFrameTest, FindDetachFrameWhileScopingStrings) |
EXPECT_FALSE(client.findResultsAreReady()); |
mainFrame->resetMatchCount(); |
- |
- for (WebFrame* frame = mainFrame; frame; frame = frame->traverseNext(false)) |
- frame->scopeStringMatches(kFindIdentifier, searchText, options, true); |
+ mainFrame->scopeStringMatches(kFindIdentifier, searchText, options, true); |
// The first scopeStringMatches will have reset the state. Detach before it actually scopes. |
EXPECT_TRUE(mainFrame->document().getElementById("frame").remove()); |