AX: Modern Media Controls Timeline slider should be operable
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Apr 2017 19:45:19 +0000 (19:45 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Apr 2017 19:45:19 +0000 (19:45 +0000)
commitc66bfb0cbaea8f9288513c933ee82f19ccbcf872
tree2515a1a77736c4f2c4cdc0644d6abcfb7e4bf53b
parentf6ee96eac35540d0e9f1a7a7cb41d07e7ce260e5
AX: Modern Media Controls Timeline slider should be operable
https://bugs.webkit.org/show_bug.cgi?id=170250

Patch by Aaron Chu <aaron_chu@apple.com> on 2017-04-20
Reviewed by Antoine Quint.

Source/WebCore:

Added a "change" event listener and aria-valuetext to the slider so that when a
VoiceOver user operates the timeline control, VO speaks the updated timestamp

Test: media/modern-media-controls/scrubber/scrubber-has-correct-ax-label.html

* English.lproj/modern-media-controls-localized-strings.js:
* Modules/modern-media-controls/controls/scrubber.js:
(Scrubber.prototype.set inputAccessibleLabel):
(Scrubber.prototype._formatTime):
* Modules/modern-media-controls/controls/slider.js:
(Slider.prototype.handleEvent):
(Slider.prototype._handleInputEvent): Deleted.
* Modules/modern-media-controls/controls/time-control.js:
(TimeControl.prototype.updateScrubberLabel):
* Modules/modern-media-controls/controls/time-label.js:
(TimeLabel.prototype.commitProperty):
(TimeLabel.prototype._formattedTime):
* Modules/modern-media-controls/main.js:
(formatTimeByUnit):
(unitizeTime):

LayoutTests:

* media/modern-media-controls/scrubber/scrubber-has-correct-ax-label-expected.txt: Added.
* media/modern-media-controls/scrubber/scrubber-has-correct-ax-label.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215572 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/modern-media-controls/scrubber/scrubber-has-correct-ax-label-expected.txt [new file with mode: 0644]
LayoutTests/media/modern-media-controls/scrubber/scrubber-has-correct-ax-label.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/modern-media-controls-localized-strings.js
Source/WebCore/Modules/modern-media-controls/controls/scrubber.js
Source/WebCore/Modules/modern-media-controls/controls/slider.js
Source/WebCore/Modules/modern-media-controls/controls/time-control.js
Source/WebCore/Modules/modern-media-controls/controls/time-label.js
Source/WebCore/Modules/modern-media-controls/main.js