Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 9d4971d0a10b89d8c4bf6670c6f089e4d937bba3..218c41c38ee4c5d36a219ffaefb4157afed806a7 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -3744,9 +3744,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()); |