Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 2b0965ea90adf4a8d217361aa30c9f75d9ffc256..becab2996022fcee87ebe2fb2052edd73db05797 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -3779,9 +3779,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); |
dcheng
2014/10/14 21:43:37
Hmm. Is this change needed to fix a test? Or just
Nate Chapin
2014/10/14 21:45:07
That was a long time ago, and I don't remember. :)
|
// The first scopeStringMatches will have reset the state. Detach before it actually scopes. |
EXPECT_TRUE(mainFrame->document().getElementById("frame").remove()); |