Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index ba661fbf74cb7c544f5887d3c1d0db984493ee00..89296919c35920bda368b105adfa8ba7f5049dfb 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -7111,7 +7111,7 @@ TEST_F(WebFrameSwapTest, SwapParentShouldDetachChildren) |
// Create child frames in the target frame before testing the swap. |
FrameTestHelpers::TestWebRemoteFrameClient remoteFrameClient; |
- remoteFrame->createRemoteChild(WebTreeScopeType::Document, "", WebSandboxFlags::None, &remoteFrameClient); |
+ WebRemoteFrame* childRemoteFrame = remoteFrame->createRemoteChild(WebTreeScopeType::Document, "", WebSandboxFlags::None, &remoteFrameClient); |
FrameTestHelpers::TestWebFrameClient client; |
WebLocalFrame* localFrame = WebLocalFrame::create(WebTreeScopeType::Document, &client); |
@@ -7130,6 +7130,7 @@ TEST_F(WebFrameSwapTest, SwapParentShouldDetachChildren) |
// TestWebFrameClient. |
reset(); |
remoteFrame->close(); |
+ childRemoteFrame->close(); |
} |
TEST_F(WebFrameSwapTest, SwapPreservesGlobalContext) |