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

Issue 202183003: Fixing race conditions in ui::content::WindowSlider which could cause the overscroll overlay to nev… (Closed)

Created:
6 years, 9 months ago by mfomitchev
Modified:
6 years, 9 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fixing race conditions in ui::content::WindowSlider which could cause the overscroll overlay to never go away. The race condition occurred because new naviagtion could happen before the callback from the animation associated with the old navigation was executed. This could get the OverscrollNavigationOverlay into a bad state. The fix is to instantly complete the animation associated with a previous user action when new interaction occurs. Also, we now perform page navigation at the beginning of the transition animation, not in the end, which saves us 200ms in load time. BUG=348717, 305448 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259766

Patch Set 1 #

Total comments: 18

Patch Set 2 : Implementing some of the review feedback. #

Total comments: 8

Patch Set 3 : Implementing review feedback. #

Patch Set 4 : Renaming Delegate's methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -130 lines) Patch
M content/browser/web_contents/aura/overscroll_navigation_overlay.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay.cc View 1 2 3 3 chunks +33 lines, -15 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/aura/window_slider.h View 1 2 3 4 chunks +36 lines, -16 lines 0 comments Download
M content/browser/web_contents/aura/window_slider.cc View 1 2 3 8 chunks +63 lines, -64 lines 0 comments Download
M content/browser/web_contents/aura/window_slider_unittest.cc View 1 2 3 19 chunks +276 lines, -33 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mfomitchev
6 years, 9 months ago (2014-03-17 20:39:02 UTC) #1
sadrul
> Also, we now perform page navigation at the beginning of > the transition animation, ...
6 years, 9 months ago (2014-03-19 20:21:18 UTC) #2
mfomitchev
Yes, the optimization only affects the case of repeated GestureNav when WindowSlider is involved. I ...
6 years, 9 months ago (2014-03-20 15:10:06 UTC) #3
sadrul
https://codereview.chromium.org/202183003/diff/1/content/browser/web_contents/aura/window_slider.cc File content/browser/web_contents/aura/window_slider.cc (right): https://codereview.chromium.org/202183003/diff/1/content/browser/web_contents/aura/window_slider.cc#newcode92 content/browser/web_contents/aura/window_slider.cc:92: ((fabs(delta_x_) >= active_start_threshold_ && slider_.get()) || On 2014/03/20 15:10:06, ...
6 years, 9 months ago (2014-03-24 20:20:46 UTC) #4
mfomitchev
https://codereview.chromium.org/202183003/diff/1/content/browser/web_contents/aura/window_slider.h File content/browser/web_contents/aura/window_slider.h (right): https://codereview.chromium.org/202183003/diff/1/content/browser/web_contents/aura/window_slider.h#newcode36 content/browser/web_contents/aura/window_slider.h:36: virtual ui::Layer* OnSlideBackStartedCreateLayer() = 0; Ok, that makes sense. ...
6 years, 9 months ago (2014-03-24 22:36:47 UTC) #5
mfomitchev
https://codereview.chromium.org/202183003/diff/20001/content/browser/web_contents/aura/window_slider.cc File content/browser/web_contents/aura/window_slider.cc (right): https://codereview.chromium.org/202183003/diff/20001/content/browser/web_contents/aura/window_slider.cc#newcode181 content/browser/web_contents/aura/window_slider.cc:181: base::Unretained(shadow_.release())))); On 2014/03/24 20:20:47, sadrul wrote: > Use base::Passed ...
6 years, 9 months ago (2014-03-25 15:27:32 UTC) #6
sadrul
https://codereview.chromium.org/202183003/diff/1/content/browser/web_contents/aura/window_slider.h File content/browser/web_contents/aura/window_slider.h (right): https://codereview.chromium.org/202183003/diff/1/content/browser/web_contents/aura/window_slider.h#newcode36 content/browser/web_contents/aura/window_slider.h:36: virtual ui::Layer* OnSlideBackStartedCreateLayer() = 0; On 2014/03/24 22:36:47, mfomitchev ...
6 years, 9 months ago (2014-03-25 23:01:56 UTC) #7
sadrul
LGTM
6 years, 9 months ago (2014-03-26 20:40:15 UTC) #8
mfomitchev
sky@: Can you please review? Thanks!
6 years, 9 months ago (2014-03-26 20:41:20 UTC) #9
sky
LGTM
6 years, 9 months ago (2014-03-26 20:45:56 UTC) #10
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 9 months ago (2014-03-26 21:00:18 UTC) #11
mfomitchev
The CQ bit was unchecked by mfomitchev@chromium.org
6 years, 9 months ago (2014-03-26 21:00:28 UTC) #12
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 9 months ago (2014-03-26 21:02:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/202183003/80001
6 years, 9 months ago (2014-03-26 21:03:24 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 00:36:42 UTC) #15
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-27 00:36:42 UTC) #16
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 9 months ago (2014-03-27 00:39:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/202183003/80001
6 years, 9 months ago (2014-03-27 00:39:22 UTC) #18
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 02:43:18 UTC) #19
Message was sent while issue was closed.
Change committed as 259766

Powered by Google App Engine
This is Rietveld 408576698