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

Issue 117733002: mac: Fix a newly introduced history swiping bug. (Closed)

Created:
7 years ago by erikchen
Modified:
7 years ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

mac: Fix a newly introduced history swiping bug. Attempting to 2-finger history swipe twice in quick succession would fail to register the second swipe ~50% of the time. The NSEvent callback with phase=NSEventPhaseBegan non-deterministically occurs before the event has been registered as a gesture. This was causing the history_swiper to process the event as part of the previous gesture. BUG=138175 TEST=In a single tab, navigate to 5 different sites. Use a trackpad to 2-finger swipe repeatedly in the same direction. Each swipe should register as a history swipe, and cause the page to navigate in the appropriate direction. There should be no jankiness, and the touches should not fail to register. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241918

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a unit test. #

Patch Set 3 : typo #

Patch Set 4 : Add a forward declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
erikchen
please take a look
7 years ago (2013-12-18 00:45:41 UTC) #1
Nico
lgtm Is it possible to test this? https://codereview.chromium.org/117733002/diff/1/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm File chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm (right): https://codereview.chromium.org/117733002/diff/1/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm#newcode287 chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm:287: NSEventPhaseMayBegin) if ...
7 years ago (2013-12-18 00:53:48 UTC) #2
erikchen
Add a test! https://codereview.chromium.org/117733002/diff/1/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm File chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm (right): https://codereview.chromium.org/117733002/diff/1/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm#newcode287 chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm:287: NSEventPhaseMayBegin) *sigh* at least the output ...
7 years ago (2013-12-18 01:22:07 UTC) #3
Nico
slgtm
7 years ago (2013-12-18 02:10:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/117733002/60001
7 years ago (2013-12-18 16:25:05 UTC) #5
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years ago (2013-12-19 03:18:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/117733002/60001
7 years ago (2013-12-19 18:08:44 UTC) #7
commit-bot: I haz the power
7 years ago (2013-12-19 19:40:50 UTC) #8
Message was sent while issue was closed.
Change committed as 241918

Powered by Google App Engine
This is Rietveld 408576698