| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 19d9d26bb515dabebf7fc2b03b581dc393474d66..7d944bf322effa6e7636d177a539815e4303d7dd 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -1823,6 +1823,12 @@ void WebContentsImpl::ReplicatePageFocus(bool is_focused) {
|
|
|
| RenderWidgetHostImpl* WebContentsImpl::GetFocusedRenderWidgetHost(
|
| RenderWidgetHostImpl* receiving_widget) {
|
| + if (!receiving_widget)
|
| + receiving_widget = GetMainFrame()->GetRenderWidgetHost();
|
| +
|
| + if (!receiving_widget)
|
| + return nullptr;
|
| +
|
| if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
|
| return receiving_widget;
|
|
|
|
|