Bug 1303970: P1. MEDIA_ERR_ABORTED can be returned even if readyState is HAVE_NOTHING. r=jwwang

So change assertion accordingly.

MozReview-Commit-ID: AuaDlyF0MAL
This commit is contained in:
Jean-Yves Avenard
2016-09-20 19:36:09 +10:00
parent 4be7faf326
commit 976b820536

View File

@@ -4467,8 +4467,6 @@ void HTMLMediaElement::Error(uint16_t aErrorCode,
aErrorCode == MEDIA_ERR_NETWORK ||
aErrorCode == MEDIA_ERR_ABORTED,
"Only use MediaError codes!");
NS_ASSERTION(mReadyState > HAVE_NOTHING,
"Shouldn't be called when readyState is HAVE_NOTHING");
// Since we have multiple paths calling into DecodeError, e.g.
// MediaKeys::Terminated and EMEH264Decoder::Error. We should take the 1st