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

Issue 2322513002: Check for null return from GetNativeView(). (Closed)

Created:
4 years, 3 months ago by wjmaclean
Modified:
4 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check for null return from GetNativeView(). At present many (all?) consumers of RenderWidgetHostViewBase::GetNativeView() assume it always returns non- null, but this may not be a safe assumption if the view is a RenderWidgetHostViewChildFrame. This CL temporarily fixes a crash when ChromeOS hits this case, while we review the behaviour of the consumers of this function, and while we review the implementation in RenderWidgetHostViewChildFrame. BUG=644294, 644726 Committed: https://crrev.com/079861f265916d3b9d6323a2f4cf07cdba864a05 Cr-Commit-Position: refs/heads/master@{#417288}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add early out to InitInsets(), UpdateInsetsForWindow(). #

Patch Set 3 : Upload version that includes early out in UpdateInsets. #

Total comments: 4

Patch Set 4 : Continue instead of return, remove extra early out. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M ui/keyboard/content/keyboard_ui_content.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
wjmaclean
jochen@ and creis@ ... ptal?
4 years, 3 months ago (2016-09-07 13:53:33 UTC) #6
jochen (gone - plz use gerrit)
is it possible to trigger the crash in a test?
4 years, 3 months ago (2016-09-07 14:27:29 UTC) #7
wjmaclean
On 2016/09/07 14:27:29, jochen wrote: > is it possible to trigger the crash in a ...
4 years, 3 months ago (2016-09-07 14:29:27 UTC) #8
Charlie Reis
Not sure what to suggest on the test. I tried to repro it locally on ...
4 years, 3 months ago (2016-09-07 17:23:58 UTC) #11
Charlie Reis
Adding Ben in case he has thoughts on how we might repro this crash. (I'm ...
4 years, 3 months ago (2016-09-07 17:25:44 UTC) #13
wjmaclean
Ptal? I'll continue to investigate how we might test this. https://codereview.chromium.org/2322513002/diff/1/chrome/browser/ui/ash/chrome_keyboard_ui.cc File chrome/browser/ui/ash/chrome_keyboard_ui.cc (right): https://codereview.chromium.org/2322513002/diff/1/chrome/browser/ui/ash/chrome_keyboard_ui.cc#newcode190 ...
4 years, 3 months ago (2016-09-07 17:41:05 UTC) #14
sadrul
On a side-note: do we want iframes to do this kind of scroll? or should ...
4 years, 3 months ago (2016-09-07 17:48:56 UTC) #18
wjmaclean
On 2016/09/07 17:48:56, sadrul wrote: > On a side-note: do we want iframes to do ...
4 years, 3 months ago (2016-09-07 18:06:00 UTC) #19
wjmaclean
On 2016/09/07 18:06:00, wjmaclean wrote: > On 2016/09/07 17:48:56, sadrul wrote: > > On a ...
4 years, 3 months ago (2016-09-07 18:24:25 UTC) #20
Charlie Reis
https://codereview.chromium.org/2322513002/diff/40001/ui/keyboard/content/keyboard_ui_content.cc File ui/keyboard/content/keyboard_ui_content.cc (right): https://codereview.chromium.org/2322513002/diff/40001/ui/keyboard/content/keyboard_ui_content.cc#newcode168 ui/keyboard/content/keyboard_ui_content.cc:168: return; I think we probably shouldn't include this change. ...
4 years, 3 months ago (2016-09-07 20:27:16 UTC) #27
wjmaclean
https://codereview.chromium.org/2322513002/diff/40001/ui/keyboard/content/keyboard_ui_content.cc File ui/keyboard/content/keyboard_ui_content.cc (right): https://codereview.chromium.org/2322513002/diff/40001/ui/keyboard/content/keyboard_ui_content.cc#newcode168 ui/keyboard/content/keyboard_ui_content.cc:168: return; On 2016/09/07 20:27:16, Charlie Reis wrote: > I ...
4 years, 3 months ago (2016-09-07 20:40:57 UTC) #29
Charlie Reis
Thanks! LGTM.
4 years, 3 months ago (2016-09-07 20:42:21 UTC) #31
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-08 12:45:57 UTC) #34
sadrul
stamp lgtm
4 years, 3 months ago (2016-09-08 14:00:50 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322513002/60001
4 years, 3 months ago (2016-09-08 14:30:28 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-08 14:34:18 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 14:36:02 UTC) #41
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/079861f265916d3b9d6323a2f4cf07cdba864a05
Cr-Commit-Position: refs/heads/master@{#417288}

Powered by Google App Engine
This is Rietveld 408576698