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

Issue 2154893002: DevTools: remove isTrusted check and isUserGesture from ViewportControl (Closed)

Created:
4 years, 5 months ago by luoe
Modified:
4 years, 4 months ago
Reviewers:
lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: remove isTrusted check and isUserGesture from ViewportControl Previously, the ViewportControl never stuck to the bottom after a scroll event. The event.isTrusted check was always true, so it was not correctly distinguishing user-generated scroll events from script-generated ones. This CL removes isUserGesture accordingly. BUG=613879 Committed: https://crrev.com/2dbbaccdef5a4b1f1348792a8b5be93e58507d33 Cr-Commit-Position: refs/heads/master@{#407062}

Patch Set 1 #

Patch Set 2 : DevTools: replace isUserGesture with isScroll #

Total comments: 2

Patch Set 3 : Reset result #

Total comments: 2

Patch Set 4 : removed isScroll parameter #

Patch Set 5 : innerRefresh > refresh #

Patch Set 6 : DevTools: fix stick to bottom in console viewport #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -19 lines) Patch
M third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js View 1 2 3 4 5 6 chunks +67 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js View 1 2 3 4 5 9 chunks +29 lines, -16 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
luoe
4 years, 5 months ago (2016-07-16 02:28:29 UTC) #3
luoe
We could update our tests to check this behavior. Coming soon.
4 years, 5 months ago (2016-07-18 16:34:40 UTC) #4
lushnikov
https://codereview.chromium.org/2154893002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js File third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js (right): https://codereview.chromium.org/2154893002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js#newcode385 third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js:385: _innerRefresh: function(isScroll) let's just remove this argument altogether https://codereview.chromium.org/2154893002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js#newcode426 ...
4 years, 5 months ago (2016-07-19 00:19:50 UTC) #5
lushnikov
https://codereview.chromium.org/2154893002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js File third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js (right): https://codereview.chromium.org/2154893002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js#newcode385 third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js:385: _innerRefresh: function(isScroll) we can now remove this argument altogether
4 years, 5 months ago (2016-07-19 02:26:19 UTC) #6
luoe
Removed argument from innerRefresh() and changed it to refresh(). https://codereview.chromium.org/2154893002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js File third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js (right): https://codereview.chromium.org/2154893002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js#newcode385 third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js:385: ...
4 years, 5 months ago (2016-07-19 17:52:33 UTC) #8
lushnikov
lgtm It's verify this working on the macbook.
4 years, 5 months ago (2016-07-20 01:44:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154893002/80001
4 years, 5 months ago (2016-07-22 03:02:21 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-22 04:43:25 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 04:45:16 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2dbbaccdef5a4b1f1348792a8b5be93e58507d33
Cr-Commit-Position: refs/heads/master@{#407062}

Powered by Google App Engine
This is Rietveld 408576698