backout 78bde999fddd from bug 975782 for assertion failure in mochitest CLOSED TREE
This commit is contained in:
@@ -3111,16 +3111,11 @@ void HTMLMediaElement::CheckProgress(bool aHaveNewProgress)
|
||||
"timer dispatched when there was no timer");
|
||||
// Were stalled. Restart timer.
|
||||
StartProgressTimer();
|
||||
if (!mLoadedDataFired) {
|
||||
ChangeDelayLoadStatus(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (now - mDataTime >= TimeDuration::FromMilliseconds(STALL_MS)) {
|
||||
DispatchAsyncEvent(NS_LITERAL_STRING("stalled"));
|
||||
ChangeDelayLoadStatus(false);
|
||||
|
||||
NS_ASSERTION(mProgressTimer, "detected stalled without timer");
|
||||
// Stop timer events, which prevents repeated stalled events until there
|
||||
// is more progress.
|
||||
|
||||
Reference in New Issue
Block a user