Bug 156970 - [EFL][GTK] Volume slider only changes volume when thumb is released, not while dragging
Summary: [EFL][GTK] Volume slider only changes volume when thumb is released, not whil...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Hunseop Jeong
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-24 23:13 PDT by Hunseop Jeong
Modified: 2016-04-27 06:13 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.71 KB, patch)
2016-04-24 23:21 PDT, Hunseop Jeong
no flags Details | Formatted Diff | Diff
Patch (4.19 KB, patch)
2016-04-26 19:38 PDT, Hunseop Jeong
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hunseop Jeong 2016-04-24 23:13:06 PDT
Some media tests didn't invoke the 'volumechange' event when dragging the volume slider in built-in media controls.
Comment 1 Hunseop Jeong 2016-04-24 23:13:31 PDT
'mediaControlsApple.js' already fixed bug in https://bugs.webkit.org/attachment.cgi?id=240041.
Comment 2 Hunseop Jeong 2016-04-24 23:21:00 PDT
Created attachment 277224 [details]
Patch
Comment 3 Xabier Rodríguez Calvar 2016-04-26 00:34:41 PDT
(In reply to comment #0)
> Some media tests didn't invoke the 'volumechange' event when dragging the
> volume slider in built-in media controls.

Could you please let us know which are the affected tests?
Comment 4 Hunseop Jeong 2016-04-26 04:58:26 PDT
(In reply to comment #3)
> (In reply to comment #0)
> > Some media tests didn't invoke the 'volumechange' event when dragging the
> > volume slider in built-in media controls.
> 
> Could you please let us know which are the affected tests?

Not some, only media/video-volume-slider-drag.html.
Comment 5 Xabier Rodríguez Calvar 2016-04-26 05:05:37 PDT
(In reply to comment #4)
> Not some, only media/video-volume-slider-drag.html.

Ok, let me do some tests and then I'll review.
Comment 6 Xabier Rodríguez Calvar 2016-04-26 08:26:21 PDT
Comment on attachment 277224 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=277224&action=review

> Source/WebCore/ChangeLog:3
> +        [EFL] Volume slider only changes volume when thumb is released, not while dragging

GTK is affected too so you should mark [GTK] as well.

> Source/WebCore/ChangeLog:23
> +        * Modules/mediacontrols/mediaControlsBase.js:
> +        (Controller.prototype.createControls):
> +        (Controller.prototype.handlePlayButtonClicked):
> +        (Controller.prototype.handleTimelineInput):
> +        (Controller.prototype.handleTimelineChange):
> +        (Controller.prototype.handleTimelineDown):
> +        (Controller.prototype.handleTimelineMouseUp):
> +        (Controller.prototype.handleMuteButtonClicked):
> +        (Controller.prototype.handleMaxButtonClicked):
> +        (Controller.prototype.handleVolumeSliderInput):
> +        (Controller.prototype.handleVolumeSliderChange): Deleted.

We would need a more complete general explanation or explain the details here.

> Source/WebCore/Modules/mediacontrols/mediaControlsBase.js:343
> -        this.listenFor(timeline, 'input', this.handleTimelineChange);
> +        this.listenFor(timeline, 'input', this.handleTimelineInput);
> +        this.listenFor(timeline, 'change', this.handleTimelineChange);

These changes seem unrelated to volume. Why are they here?

> Source/WebCore/Modules/mediacontrols/mediaControlsBase.js:737
> -    handleTimelineChange: function(event)
> +    handleTimelineInput: function(event)
>      {
>          this.video.fastSeek(this.controls.timeline.value);
>      },
>  
> +    handleTimelineChange: function(event)
> +    {
> +        this.video.currentTime = this.controls.timeline.value;
> +    },
> +    

Ditto.

> Source/WebCore/Modules/mediacontrols/mediaControlsBase.js:-793
> -
> -        // Do a precise seek when we lift the mouse:
> -        this.video.currentTime = this.controls.timeline.value;

Ditto
Comment 7 Hunseop Jeong 2016-04-26 19:38:57 PDT
Created attachment 277438 [details]
Patch
Comment 8 Hunseop Jeong 2016-04-26 19:45:15 PDT
Comment on attachment 277224 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=277224&action=review

>> Source/WebCore/Modules/mediacontrols/mediaControlsBase.js:343
>> +        this.listenFor(timeline, 'change', this.handleTimelineChange);
> 
> These changes seem unrelated to volume. Why are they here?

You are right. That is related with timeline. I just moved the codes(https://bugs.webkit.org/show_bug.cgi?id=137805).
Comment 9 Xabier Rodríguez Calvar 2016-04-27 02:34:42 PDT
Comment on attachment 277438 [details]
Patch

Good that you removed the failing expectations too. Nice!
Comment 10 Hunseop Jeong 2016-04-27 05:24:18 PDT
Comment on attachment 277438 [details]
Patch

Thanks for the review.
Comment 11 WebKit Commit Bot 2016-04-27 06:13:38 PDT
Comment on attachment 277438 [details]
Patch

Clearing flags on attachment: 277438

Committed r200126: <http://trac.webkit.org/changeset/200126>
Comment 12 WebKit Commit Bot 2016-04-27 06:13:43 PDT
All reviewed patches have been landed.  Closing bug.