Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
| index 512dfee75fcfe859870524425f795d18b164b4aa..de2c85f1975a0e8300e442923f9753af6eda8b51 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.cc |
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc |
| @@ -708,6 +708,11 @@ void RenderWidgetHostImpl::Focus() { |
| is_focused_ = true; |
| Send(new InputMsg_SetFocus(routing_id_, true)); |
| + |
| + // Also send page-level focus state to other SiteInstances involved in |
| + // rendering the current FrameTree. |
| + if (IsRenderView() && delegate_) |
|
Charlie Reis
2015/10/16 18:56:09
Does this still work with Avi's changes to split R
alexmos
2015/10/16 22:56:06
Yes, just confirmed that it does. RVHI is still a
|
| + delegate_->ReplicatePageFocus(true); |
| } |
| void RenderWidgetHostImpl::Blur() { |
| @@ -723,6 +728,11 @@ void RenderWidgetHostImpl::Blur() { |
| touch_emulator_->CancelTouch(); |
| Send(new InputMsg_SetFocus(routing_id_, false)); |
| + |
| + // Also send page-level focus state to other SiteInstances involved in |
| + // rendering the current FrameTree. |
| + if (IsRenderView() && delegate_) |
| + delegate_->ReplicatePageFocus(false); |
| } |
| void RenderWidgetHostImpl::LostCapture() { |