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

Issue 754763005: Speculative fix for sticky keys overlay crash. (Closed)

Created:
6 years ago by Tim Song
Modified:
6 years ago
Reviewers:
James Cook, Jun Mukai
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Speculative fix for sticky keys overlay crash. The new test case reproduces the same stack trace as in the bug, so it's very probable that this case is causing the crash. BUG=435600 Committed: https://crrev.com/9391c0e45bc3ae50008d0aebf11437550e7f38c6 Cr-Commit-Position: refs/heads/master@{#306504} Committed: https://crrev.com/f98986c03fb7047364b9e8bd8c3f74622a315802 Cr-Commit-Position: refs/heads/master@{#307140}

Patch Set 1 #

Total comments: 7

Patch Set 2 : fixes #

Patch Set 3 : found repro for this crash #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : add more asserts #

Total comments: 16

Patch Set 6 : remove WidgetDelegateView inheritance #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -13 lines) Patch
M ash/root_window_controller.cc View 1 2 1 chunk +2 lines, -1 line 2 comments Download
M ash/sticky_keys/sticky_keys_overlay.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay.cc View 1 2 3 4 5 5 chunks +14 lines, -5 lines 0 comments Download
M ash/sticky_keys/sticky_keys_overlay_unittest.cc View 1 2 3 4 5 2 chunks +38 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (8 generated)
Tim Song
6 years ago (2014-12-01 19:20:14 UTC) #2
James Cook
LGTM with nits. Be sure to run ASAN or Valgrind builds before landing to provide ...
6 years ago (2014-12-01 21:06:00 UTC) #3
Tim Song
https://codereview.chromium.org/754763005/diff/1/ash/sticky_keys/sticky_keys_overlay.h File ash/sticky_keys/sticky_keys_overlay.h (right): https://codereview.chromium.org/754763005/diff/1/ash/sticky_keys/sticky_keys_overlay.h#newcode54 ash/sticky_keys/sticky_keys_overlay.h:54: // Returns the underlying ::views Widget for testing purposes. ...
6 years ago (2014-12-02 20:07:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754763005/20001
6 years ago (2014-12-02 20:08:01 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel/builds/16238)
6 years ago (2014-12-02 22:16:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754763005/20001
6 years ago (2014-12-02 23:42:19 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-03 00:26:31 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9391c0e45bc3ae50008d0aebf11437550e7f38c6 Cr-Commit-Position: refs/heads/master@{#306504}
6 years ago (2014-12-03 00:27:17 UTC) #12
Lei Zhang
Valgrind bots are red, and so are the CrOS ASAN/LSAN bots -> reverting.
6 years ago (2014-12-03 02:14:44 UTC) #14
Lei Zhang
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/757433005/ by thestig@chromium.org. ...
6 years ago (2014-12-03 02:15:32 UTC) #15
James Cook
On 2014/12/03 02:15:32, Lei Zhang wrote: > A revert of this CL (patchset #2 id:20001) ...
6 years ago (2014-12-03 15:01:56 UTC) #16
Tim Song
My apologies. I misunderstood the ownership semantics of WidgetDelegateView yet again. However, I managed to ...
6 years ago (2014-12-04 19:25:14 UTC) #17
James Cook
A suggestion. Also, if you need input on the specifics of display connect/disconnect then oshima ...
6 years ago (2014-12-04 20:43:17 UTC) #18
Tim Song
+ mukai@ for an additional pair of eyes, in case I'm overlooking something with the ...
6 years ago (2014-12-04 21:17:44 UTC) #20
Jun Mukai
https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode225 ash/sticky_keys/sticky_keys_overlay.cc:225: params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; WIDGET_OWNS_NATIVE_WIDGET is not used usually. I ...
6 years ago (2014-12-04 21:58:55 UTC) #21
James Cook
LGTM with nits. Again, be sure to run the ASAN / valgrind bots before landing. ...
6 years ago (2014-12-04 22:00:45 UTC) #22
Tim Song
https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode135 ash/sticky_keys/sticky_keys_overlay.cc:135: set_owned_by_client(); On 2014/12/04 22:00:45, James Cook wrote: > Doesn't ...
6 years ago (2014-12-04 23:53:37 UTC) #23
Jun Mukai
https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode225 ash/sticky_keys/sticky_keys_overlay.cc:225: params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; On 2014/12/04 23:53:37, Tim Song wrote: ...
6 years ago (2014-12-05 00:10:37 UTC) #25
Tim Song
https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode225 ash/sticky_keys/sticky_keys_overlay.cc:225: params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; On 2014/12/05 00:10:36, Jun Mukai wrote: ...
6 years ago (2014-12-05 01:03:14 UTC) #26
Jun Mukai
https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode225 ash/sticky_keys/sticky_keys_overlay.cc:225: params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; On 2014/12/05 01:03:14, Tim Song wrote: ...
6 years ago (2014-12-05 02:23:08 UTC) #27
Jun Mukai
On 2014/12/05 02:23:08, Jun Mukai wrote: > https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc > File ash/sticky_keys/sticky_keys_overlay.cc (right): > > https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode225 ...
6 years ago (2014-12-05 18:16:58 UTC) #28
Tim Song
https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc File ash/sticky_keys/sticky_keys_overlay.cc (right): https://codereview.chromium.org/754763005/diff/80001/ash/sticky_keys/sticky_keys_overlay.cc#newcode225 ash/sticky_keys/sticky_keys_overlay.cc:225: params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; On 2014/12/05 02:23:07, Jun Mukai wrote: ...
6 years ago (2014-12-05 19:29:51 UTC) #29
Jun Mukai
lgtm
6 years ago (2014-12-05 22:19:13 UTC) #30
Tim Song
ASAN bots are green. Committing again.
6 years ago (2014-12-06 00:52:55 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754763005/100001
6 years ago (2014-12-06 00:54:10 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-06 01:42:29 UTC) #34
commit-bot: I haz the power
6 years ago (2014-12-06 01:43:19 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f98986c03fb7047364b9e8bd8c3f74622a315802
Cr-Commit-Position: refs/heads/master@{#307140}

Powered by Google App Engine
This is Rietveld 408576698