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

Issue 170743004: Added early out for pinch to prevent crash when no inner scroll layer. (Closed)

Created:
6 years, 10 months ago by bokan
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Added early out for pinch to prevent crash when no inner scroll layer. The layer tree seems to receive gesture events before it's initialized (or while being destroyed). This means the pinch events get executed while InnerViewportScrollLayer() == NULL, which was assumed to be non NULL. The event handler should probably not be sending events to an uninitialized layer tree but in the mean time I've disabled the DCHECK and added an early out to prevent crashes. BUG=340303 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252205

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed checks from PinchBegin/End #

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

Messages

Total messages: 13 (0 generated)
bokan
I've filed crbug.com/344617 to track actually gating the events so that they don't get to ...
6 years, 10 months ago (2014-02-18 21:09:46 UTC) #1
wjmaclean
https://codereview.chromium.org/170743004/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/170743004/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2494 cc/trees/layer_tree_host_impl.cc:2494: if (!InnerViewportScrollLayer()) Do we really need early outs in ...
6 years, 10 months ago (2014-02-18 21:16:59 UTC) #2
bokan
https://codereview.chromium.org/170743004/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/170743004/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2494 cc/trees/layer_tree_host_impl.cc:2494: if (!InnerViewportScrollLayer()) On 2014/02/18 21:16:59, wjmaclean wrote: > Do ...
6 years, 10 months ago (2014-02-18 22:12:10 UTC) #3
wjmaclean
On 2014/02/18 22:12:10, bokan wrote: > https://codereview.chromium.org/170743004/diff/1/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/170743004/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2494 > ...
6 years, 10 months ago (2014-02-18 22:34:37 UTC) #4
bokan
+aelias@ for OWNER
6 years, 10 months ago (2014-02-19 16:52:20 UTC) #5
aelias_OOO_until_Jul13
lgtm
6 years, 10 months ago (2014-02-19 19:27:00 UTC) #6
bokan
The CQ bit was checked by bokan@chromium.org
6 years, 10 months ago (2014-02-19 21:56:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/170743004/70001
6 years, 10 months ago (2014-02-19 22:15:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/170743004/70001
6 years, 10 months ago (2014-02-20 00:47:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/170743004/70001
6 years, 10 months ago (2014-02-20 03:38:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/170743004/70001
6 years, 10 months ago (2014-02-20 08:46:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/170743004/70001
6 years, 10 months ago (2014-02-20 12:19:42 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 13:07:04 UTC) #13
Message was sent while issue was closed.
Change committed as 252205

Powered by Google App Engine
This is Rietveld 408576698