| Index: content/shell/test_runner/web_frame_test_client.cc
|
| diff --git a/content/shell/test_runner/web_frame_test_client.cc b/content/shell/test_runner/web_frame_test_client.cc
|
| index d465938e2f27bc14a9682f067d4f925aa9210854..1a81d7ba8800fb1e31b1f6554aa687c650d97eeb 100644
|
| --- a/content/shell/test_runner/web_frame_test_client.cc
|
| +++ b/content/shell/test_runner/web_frame_test_client.cc
|
| @@ -33,6 +33,7 @@
|
| #include "third_party/WebKit/public/web/WebDataSource.h"
|
| #include "third_party/WebKit/public/web/WebElement.h"
|
| #include "third_party/WebKit/public/web/WebFrame.h"
|
| +#include "third_party/WebKit/public/web/WebFrameWidget.h"
|
| #include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
|
| #include "third_party/WebKit/public/web/WebPluginParams.h"
|
| @@ -181,6 +182,17 @@ WebFrameTestClient::WebFrameTestClient(
|
|
|
| WebFrameTestClient::~WebFrameTestClient() {}
|
|
|
| +void WebFrameTestClient::FrameDetached(blink::WebLocalFrame* frame,
|
| + DetachType type) {
|
| + if (type == DetachType::kRemove && frame->Parent())
|
| + frame->Parent()->RemoveChild(frame);
|
| +
|
| + if (frame->FrameWidget())
|
| + frame->FrameWidget()->Close();
|
| +
|
| + frame->Close();
|
| +}
|
| +
|
| blink::WebColorChooser* WebFrameTestClient::CreateColorChooser(
|
| blink::WebColorChooserClient* client,
|
| const blink::WebColor& color,
|
|
|