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

Issue 2622273003: Fixed volume slider element event handling (Closed)

Created:
3 years, 11 months ago by mustaq
Modified:
3 years, 11 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed volume slider element event handling MediaControlVolumeSliderElement::defaultEventHandler has making redundant calls to setVolume() & setMuted() on mouse activity. E.g. if a mouse click changed the slider position, the above calls were made 4 times, once for each of these events: mousedown, input, mouseup, DOMActive, click. This crack got exposed when PointerEvents are enabled by default on M55, adding pointermove, pointerdown & pointerup to the list. This CL fixes the code to trigger the calls to setVolume() & setMuted() only when the slider position is changed. Also added pointer events to certain lists of mouse events in the code. BUG=677900 Review-Url: https://codereview.chromium.org/2622273003 Cr-Commit-Position: refs/heads/master@{#446032} Committed: https://chromium.googlesource.com/chromium/src/+/74fce5949bdf05a92c2bc0bd98e6e3e977c55376

Patch Set 1 #

Patch Set 2 : Remvoed logs, added a TODO. #

Total comments: 3

Patch Set 3 : Added a TODO #

Total comments: 8

Patch Set 4 : Addressed chcunningham's comments. #

Total comments: 9

Patch Set 5 : mlamouri's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -23 lines) Patch
M third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 4 chunks +16 lines, -23 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
mustaq
ptal. Manual testing shows the bug has been fixed, and the volume slider works as ...
3 years, 11 months ago (2017-01-11 15:23:12 UTC) #2
mustaq
3 years, 11 months ago (2017-01-11 15:24:15 UTC) #4
liberato (no reviews please)
oh! i misread the original bug. i thought it was the mute button! if i'd ...
3 years, 11 months ago (2017-01-11 16:07:26 UTC) #6
mustaq
https://codereview.chromium.org/2622273003/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2622273003/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode765 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:765: event->type() == EventTypeNames::pointermove) On 2017/01/11 16:07:26, liberato wrote: > ...
3 years, 11 months ago (2017-01-11 17:34:36 UTC) #7
mustaq
https://codereview.chromium.org/2622273003/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2622273003/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode765 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:765: event->type() == EventTypeNames::pointermove) On 2017/01/11 17:34:35, mustaq wrote: > ...
3 years, 11 months ago (2017-01-11 21:24:58 UTC) #8
chcunningham
More non-owner questions. https://codereview.chromium.org/2622273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2622273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode100 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:100: type == EventTypeNames::mouseout || What is ...
3 years, 11 months ago (2017-01-12 21:48:46 UTC) #9
mustaq
ptal https://codereview.chromium.org/2622273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2622273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode100 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:100: type == EventTypeNames::mouseout || On 2017/01/12 21:48:46, chcunningham_ooo_jan11 ...
3 years, 11 months ago (2017-01-17 19:32:42 UTC) #10
chcunningham
Non owner LGTM - but I strongly encourage thorough owner review https://codereview.chromium.org/2622273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): ...
3 years, 11 months ago (2017-01-20 00:01:38 UTC) #11
mustaq
A friendly reminder that we need owner's review here. It will be great to have ...
3 years, 11 months ago (2017-01-23 20:41:08 UTC) #16
mlamouri (slow - plz ping)
lgtm with comments applied. Sorry for the delay :( https://codereview.chromium.org/2622273003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2622273003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode90 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:90: ...
3 years, 11 months ago (2017-01-24 02:06:51 UTC) #17
mustaq
https://codereview.chromium.org/2622273003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2622273003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode90 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:90: // true for that method. Can we nuke the ...
3 years, 11 months ago (2017-01-24 20:51:12 UTC) #18
mlamouri (slow - plz ping)
mustaq@, just as a reminder, I think this can land now.
3 years, 11 months ago (2017-01-25 05:23:36 UTC) #19
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/2622273003/60001
3 years, 11 months ago (2017-01-25 14:41:17 UTC) #21
mustaq
On 2017/01/25 05:23:36, mlamouri (slow) wrote: > mustaq@, just as a reminder, I think this ...
3 years, 11 months ago (2017-01-25 14:58:52 UTC) #22
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/2622273003/80001
3 years, 11 months ago (2017-01-25 15:00:14 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 16:26:36 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/74fce5949bdf05a92c2bc0bd98e6...

Powered by Google App Engine
This is Rietveld 408576698