Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 1505723005: Null-check GetView before using it in GetFocusedRenderWidgetHost. (Closed)

Created:
5 years ago by alexmos
Modified:
5 years ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Null-check GetView before using it in GetFocusedRenderWidgetHost. This prevents GetFocusedRenderWidgetHost from crashing in the case where a focused subframe's renderer has crashed, and we try typing in the same tab. BUG=567345 Committed: https://crrev.com/732ca3a09e2da139475f36f883b99d587532dd95 Cr-Commit-Position: refs/heads/master@{#363703}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Drop the event instead of giving to main frame. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
alexmos
Charlie, can you please take a look? This should fix the crash you've encountered.
5 years ago (2015-12-07 22:40:15 UTC) #2
Charlie Reis
Quick sanity check; otherwise looks good. https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode1651 content/browser/web_contents/web_contents_impl.cc:1651: // the subframe ...
5 years ago (2015-12-07 22:47:25 UTC) #3
alexmos
https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode1651 content/browser/web_contents/web_contents_impl.cc:1651: // the subframe has focus. Give the event to ...
5 years ago (2015-12-07 23:12:59 UTC) #4
Charlie Reis
https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode1651 content/browser/web_contents/web_contents_impl.cc:1651: // the subframe has focus. Give the event to ...
5 years ago (2015-12-07 23:16:52 UTC) #5
alexmos
https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1505723005/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode1651 content/browser/web_contents/web_contents_impl.cc:1651: // the subframe has focus. Give the event to ...
5 years ago (2015-12-07 23:21:50 UTC) #6
Charlie Reis
Thanks! LGTM.
5 years ago (2015-12-07 23:27:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505723005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505723005/20001
5 years ago (2015-12-07 23:39:43 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/132536)
5 years ago (2015-12-08 00:57:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505723005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505723005/20001
5 years ago (2015-12-08 01:14:19 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-08 02:01:12 UTC) #15
commit-bot: I haz the power
5 years ago (2015-12-08 02:02:06 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/732ca3a09e2da139475f36f883b99d587532dd95
Cr-Commit-Position: refs/heads/master@{#363703}

Powered by Google App Engine
This is Rietveld 408576698