| 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 2eac61d453e9e9a00c611cfd55c42181fd4b3c33..0515cae5ff7d84a26f0d41a0c39aab87facd5ecc 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2906,9 +2906,17 @@ WebFrame* WebViewImpl::findFrameByName(
|
| return WebLocalFrameImpl::fromFrame(toLocalFrame(frame));
|
| }
|
|
|
| -WebFrame* WebViewImpl::focusedFrame()
|
| +WebLocalFrame* WebViewImpl::focusedFrame()
|
| {
|
| - return WebFrame::fromFrame(focusedCoreFrame());
|
| + Frame* frame = focusedCoreFrame();
|
| + if (!frame)
|
| + LOG(ERROR) << "hyb: frame is null";
|
| + if (!frame->isLocalFrame())
|
| + LOG(ERROR) << "hyb: frame is not local frame";
|
| +
|
| + if (!frame || !frame->isLocalFrame())
|
| + return nullptr;
|
| + return WebLocalFrameImpl::fromFrame(toLocalFrame(frame));
|
| }
|
|
|
| void WebViewImpl::setFocusedFrame(WebFrame* frame)
|
|
|