| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 625d58164ab50d2df97cfe09e8052624b8fe0fc9..c5332b9e025ee191360a8ee40fb475c8b6b8046e 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2905,9 +2905,12 @@ WebFrame* WebViewImpl::findFrameByName(
|
| return WebLocalFrameImpl::fromFrame(toLocalFrame(frame));
|
| }
|
|
|
| -WebFrame* WebViewImpl::focusedFrame()
|
| +WebLocalFrame* WebViewImpl::focusedFrame()
|
| {
|
| - return WebFrame::fromFrame(focusedCoreFrame());
|
| + Frame* frame = focusedCoreFrame();
|
| + if (!frame || !frame->isLocalFrame())
|
| + return nullptr;
|
| + return WebLocalFrameImpl::fromFrame(toLocalFrame(frame));
|
| }
|
|
|
| void WebViewImpl::setFocusedFrame(WebFrame* frame)
|
|
|