backout 78bde999fddd from bug 975782 for assertion failure in mochitest CLOSED TREE

This commit is contained in:
Karl Tomlinson
2014-12-10 17:33:46 +13:00
parent 57a08a0de8
commit 745fd3fac6
12 changed files with 17 additions and 5 deletions

View File

@@ -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.