diff options
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host.cc b/chrome/browser/renderer_host/render_widget_host.cc index 8141258..7739e9f 100644 --- a/chrome/browser/renderer_host/render_widget_host.cc +++ b/chrome/browser/renderer_host/render_widget_host.cc @@ -439,9 +439,10 @@ void RenderWidgetHost::ForwardKeyboardEvent( // Tab switching/closing accelerators aren't sent to the renderer to avoid a // hung/malicious renderer from interfering. if (!ShouldSendToRenderer(key_event)) { - UnhandledKeyboardEvent(key_event); if (key_event.type == WebKeyboardEvent::RawKeyDown) suppress_next_char_events_ = true; + UnhandledKeyboardEvent(key_event); + // We might be deleted now. return; } |