summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_widget.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 3aa58e3..0d7fadf 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -650,6 +650,12 @@ void RenderWidget::show(WebNavigationPolicy) {
}
void RenderWidget::didFocus() {
+ // Note that didFocus() is invoked everytime a new node is focused in the
+ // page. It could be expected that it would be called only when the widget
+ // gets the focus. If the current behavior was to change in WebKit for the
+ // expected one, the following notification would not work anymore.
+ Send(new ViewHostMsg_FocusedNodeChanged(routing_id_));
+
// Prevent the widget from stealing the focus if it does not have focus
// already. We do this by explicitely setting the focus to false again.
// We only let the browser focus the renderer.