| Index: Source/web/tests/FrameTestHelpers.cpp
|
| diff --git a/Source/web/tests/FrameTestHelpers.cpp b/Source/web/tests/FrameTestHelpers.cpp
|
| index 0004cf070b83736610f7b69031367bb9d03e8444..fc25299e7fe7f16e35f3a6ec12d219cdf5d0d5af 100644
|
| --- a/Source/web/tests/FrameTestHelpers.cpp
|
| +++ b/Source/web/tests/FrameTestHelpers.cpp
|
| @@ -147,11 +147,15 @@ void WebViewHelper::reset()
|
|
|
| WebFrame* TestWebFrameClient::createChildFrame(WebFrame* parent, const WebString& frameName)
|
| {
|
| - return WebFrame::create(this);
|
| + WebFrame* frame = WebFrame::create(this);
|
| + parent->appendChild(frame);
|
| + return frame;
|
| }
|
|
|
| void TestWebFrameClient::frameDetached(WebFrame* frame)
|
| {
|
| + if (frame->parent())
|
| + frame->parent()->removeChild(frame);
|
| frame->close();
|
| }
|
|
|
|
|