Calling video.controls=true during a scrub operation cancels scrub.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jan 2016 15:20:03 +0000 (15:20 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jan 2016 15:20:03 +0000 (15:20 +0000)
commit6694138160a1a10064607fa2e4dd2feef98036a2
treea518aa6a296a0815d55daa6b893b641c265f2334
parent8ae5734c348c99ba40db8c081318abf3a43f7167
Calling video.controls=true during a scrub operation cancels scrub.
https://bugs.webkit.org/show_bug.cgi?id=153494

Reviewed by Eric Carlson.

Source/WebCore:

Test: media/media-controls-drag-timeline-set-controls-property.html

Verify that the video.controls attribute actually changed before tearing down and
re-adding the media controls to the Shadow DOM.

* Modules/mediacontrols/mediaControlsApple.js:
(Controller.prototype.handleControlsChange):
(Controller.prototype.hasControls):

LayoutTests:

* media/media-controls-drag-timeline-set-controls-property-expected.txt: Added.
* media/media-controls-drag-timeline-set-controls-property.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/media-controls-drag-timeline-set-controls-property-expected.txt [new file with mode: 0644]
LayoutTests/media/media-controls-drag-timeline-set-controls-property.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsApple.js