Chromium Code Reviews| Index: Source/core/frame/RemoteFrame.cpp |
| diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp |
| index e2991b4b1bc4da0c691b993412b700e0d71e1361..f6256f4c3dd21d5ec92c9b6d794283d834073757 100644 |
| --- a/Source/core/frame/RemoteFrame.cpp |
| +++ b/Source/core/frame/RemoteFrame.cpp |
| @@ -150,6 +150,13 @@ void RemoteFrame::createView() |
| } |
| } |
| +void RemoteFrame::close() |
| +{ |
| + // window.close only makes sense on a top-level frame. |
| + if (!tree().parent()) |
| + remoteFrameClient()->close(); |
|
dcheng
2015/06/10 20:10:41
LocalDOMWindow::close() has a bunch of other stuff
nasko
2015/06/11 00:04:39
I've added those to RemoteDOMWindow.
dcheng
2015/06/11 02:00:06
Well... but we can change that to do what we need.
|
| +} |
| + |
| RemoteFrameClient* RemoteFrame::remoteFrameClient() const |
| { |
| return static_cast<RemoteFrameClient*>(client()); |