Bug 1295023 - ignore to set the same value for the ready state. r=rillian
MozReview-Commit-ID: 9OWJfnWAwj9
This commit is contained in:
@@ -392,6 +392,10 @@ HTMLTrackElement::ReadyState() const
|
||||
void
|
||||
HTMLTrackElement::SetReadyState(uint16_t aReadyState)
|
||||
{
|
||||
if (ReadyState() == aReadyState) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mTrack) {
|
||||
switch (aReadyState) {
|
||||
case TextTrackReadyState::Loaded:
|
||||
|
||||
Reference in New Issue
Block a user