| 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 2e9e6d9e1622487022ead2c89b2be2086afeb901..516defbd2f9f3a47eeaf4932caa73d45e042e622 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -1585,6 +1585,16 @@ RenderWidgetHostInputEventRouter* WebContentsImpl::GetInputEventRouter() {
|
| return rwh_input_event_router_.get();
|
| }
|
|
|
| +void WebContentsImpl::ReplicatePageFocus(bool is_focused) {
|
| + // Focus loss may occur while this WebContents is being destroyed. Don't
|
| + // send the message in this case, as the main frame's RenderFrameHost and
|
| + // other state has already been cleared.
|
| + if (is_being_destroyed_)
|
| + return;
|
| +
|
| + GetRenderManager()->ReplicatePageFocus(is_focused);
|
| +}
|
| +
|
| void WebContentsImpl::EnterFullscreenMode(const GURL& origin) {
|
| // This method is being called to enter renderer-initiated fullscreen mode.
|
| // Make sure any existing fullscreen widget is shut down first.
|
|
|