Bug 1295023 - ignore to set the same value for the ready state. r=rillian

MozReview-Commit-ID: 9OWJfnWAwj9
This commit is contained in:
Alastor Wu
2016-08-18 19:10:31 +08:00
parent 59db6d7991
commit 4ef94d19ed

View File

@@ -392,6 +392,10 @@ HTMLTrackElement::ReadyState() const
void
HTMLTrackElement::SetReadyState(uint16_t aReadyState)
{
if (ReadyState() == aReadyState) {
return;
}
if (mTrack) {
switch (aReadyState) {
case TextTrackReadyState::Loaded: