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

Issue 2047083002: Do not allow NULL to be passed into FocusManager::ViewRemoved. (Closed)

Created:
4 years, 6 months ago by krasin
Modified:
4 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, kcc2, pcc1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not allow NULL to be passed into FocusManager::ViewRemoved, when focused_view_ != NULL. This could happen when a top view is focused and it's being destroyed. BUG=617305 Committed: https://crrev.com/3f785a8c6d9e355eef6ea0b09c6df1eaedc850f4 Cr-Commit-Position: refs/heads/master@{#400174}

Patch Set 1 #

Patch Set 2 : Ignore cases when focused_view_ == NULL #

Patch Set 3 : may be fix #

Patch Set 4 : reduce diff #

Total comments: 8

Patch Set 5 : simplify DCHECK, add a comment. #

Patch Set 6 : do not allow NULL at all #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M ui/views/focus/focus_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 46 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047083002/1
4 years, 6 months ago (2016-06-07 21:04:13 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/182293) mac_chromium_gn_rel on ...
4 years, 6 months ago (2016-06-07 21:57:40 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047083002/20001
4 years, 6 months ago (2016-06-08 00:24:46 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/83751)
4 years, 6 months ago (2016-06-08 00:40:06 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047083002/40001
4 years, 6 months ago (2016-06-08 03:18:08 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 04:33:09 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047083002/60001
4 years, 6 months ago (2016-06-08 04:40:11 UTC) #14
krasin
4 years, 6 months ago (2016-06-08 05:20:19 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 05:35:51 UTC) #19
krasin
Scott, friendly ping.
4 years, 6 months ago (2016-06-09 00:57:11 UTC) #20
sky
https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc#newcode520 ui/views/focus/focus_manager.cc:520: if (!focused_view_) Contains handles null correctly, so you shouldn't ...
4 years, 6 months ago (2016-06-09 17:23:14 UTC) #21
krasin
https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc#newcode520 ui/views/focus/focus_manager.cc:520: if (!focused_view_) On 2016/06/09 17:23:14, sky wrote: > Contains ...
4 years, 6 months ago (2016-06-09 17:46:11 UTC) #22
sky
https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc#newcode520 ui/views/focus/focus_manager.cc:520: if (!focused_view_) On 2016/06/09 17:46:11, krasin wrote: > On ...
4 years, 6 months ago (2016-06-09 18:06:00 UTC) #23
krasin
https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc#newcode520 ui/views/focus/focus_manager.cc:520: if (!focused_view_) Consider the case, when removed == NULL. ...
4 years, 6 months ago (2016-06-09 18:13:06 UTC) #24
sky
https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc#newcode520 ui/views/focus/focus_manager.cc:520: if (!focused_view_) On 2016/06/09 18:13:06, krasin wrote: > Consider ...
4 years, 6 months ago (2016-06-09 22:34:24 UTC) #25
krasin
https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/2047083002/diff/60001/ui/views/focus/focus_manager.cc#newcode520 ui/views/focus/focus_manager.cc:520: if (!focused_view_) On 2016/06/09 22:34:24, sky wrote: > On ...
4 years, 6 months ago (2016-06-09 23:10:57 UTC) #26
sky
I looked at a handful of the failures and they are originated from the place ...
4 years, 6 months ago (2016-06-09 23:32:13 UTC) #27
krasin
Okay, I will try. Sending a dry CQ run to see what would fail.
4 years, 6 months ago (2016-06-09 23:39:34 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047083002/100001
4 years, 6 months ago (2016-06-09 23:39:57 UTC) #30
krasin
Whoa! Actually, that looks pretty good. Just three more trybots to go.
4 years, 6 months ago (2016-06-10 01:21:05 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ...
4 years, 6 months ago (2016-06-10 01:41:43 UTC) #33
krasin
Scott, does the fix look good in its current form? If yes, I would probably ...
4 years, 6 months ago (2016-06-10 01:44:50 UTC) #36
krasin
Friendly ping. All trybots passed.
4 years, 6 months ago (2016-06-10 20:26:54 UTC) #37
krasin
Ping! Today is the last day before I go on vacation. While technically I could ...
4 years, 6 months ago (2016-06-13 15:35:35 UTC) #38
sky
LGTM - sorry, was OOO until today.
4 years, 6 months ago (2016-06-16 15:25:22 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047083002/100001
4 years, 6 months ago (2016-06-16 15:26:11 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-16 16:45:36 UTC) #43
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 16:45:43 UTC) #44
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 16:47:00 UTC) #46
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3f785a8c6d9e355eef6ea0b09c6df1eaedc850f4
Cr-Commit-Position: refs/heads/master@{#400174}

Powered by Google App Engine
This is Rietveld 408576698