| Index: Source/core/frame/RemoteFrame.cpp
|
| diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
|
| index 12f842cc01ce4176c34c05400045f80e6f548e78..3f46014c71461bdef448cc1709b6758c31bcdbd0 100644
|
| --- a/Source/core/frame/RemoteFrame.cpp
|
| +++ b/Source/core/frame/RemoteFrame.cpp
|
| @@ -152,6 +152,13 @@ void RemoteFrame::createView()
|
| }
|
| }
|
|
|
| +void RemoteFrame::close()
|
| +{
|
| + // window.close only makes sense on a top-level frame.
|
| + if (!tree().parent())
|
| + remoteFrameClient()->close();
|
| +}
|
| +
|
| RemoteFrameClient* RemoteFrame::remoteFrameClient() const
|
| {
|
| return static_cast<RemoteFrameClient*>(client());
|
|
|