Bug 589626 Commit merge of backout of 87ffcfb83db3 a=backout

This commit is contained in:
Chris Pearce 2010-09-11 14:05:55 +12:00
Родитель c6af905301 3c8cb8c6db
Коммит a3175ddb82
4 изменённых файлов: 1 добавлений и 15 удалений

Просмотреть файл

@ -2087,18 +2087,6 @@ void nsHTMLMediaElement::UpdateReadyStateForData(NextFrameStatus aNextFrame)
return; return;
} }
if (mDecoder->GetCurrentStream()->IsSuspendedByCache() &&
!mDecoder->IsEnded())
{
// The download has been suspended by the media cache, and we've not
// completed playback of the resource, so go into HAVE_ENOUGH_DATA state.
// This ensures we always fire canplaythrough and other play events,
// particularly when we suspend the download before the download rate
// has been reliably established.
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_ENOUGH_DATA);
return;
}
// Now see if we should set HAVE_ENOUGH_DATA. // Now see if we should set HAVE_ENOUGH_DATA.
// If it's something we don't know the size of, then we can't // If it's something we don't know the size of, then we can't
// make a real estimate, so we go straight to HAVE_ENOUGH_DATA once // make a real estimate, so we go straight to HAVE_ENOUGH_DATA once

Просмотреть файл

@ -556,7 +556,6 @@ void nsBuiltinDecoder::NotifySuspendedStatusChanged()
// now so we consume data and hopefully free up cache space // now so we consume data and hopefully free up cache space
mElement->NotifyAutoplayDataReady(); mElement->NotifyAutoplayDataReady();
} }
UpdateReadyStateForData();
} }
void nsBuiltinDecoder::NotifyBytesDownloaded() void nsBuiltinDecoder::NotifyBytesDownloaded()

Просмотреть файл

@ -17,7 +17,7 @@ var manager = new MediaTestManager;
function startTest(test, token) { function startTest(test, token) {
if (!tmpAudio.canPlayType(test.type)) if (!tmpAudio.canPlayType(test.type))
return; continue;
manager.started(token); manager.started(token);
var a1 = new Audio(test.name); var a1 = new Audio(test.name);
is(a1.getAttribute("preload"), "auto", "Preload automatically set to auto"); is(a1.getAttribute("preload"), "auto", "Preload automatically set to auto");

Просмотреть файл

@ -49,7 +49,6 @@ SimpleTest.waitForExplicitFinish();
<video id='v' <video id='v'
src='seek.ogv' src='seek.ogv'
onloadedmetadata='return startTest();' onloadedmetadata='return startTest();'
onerror='event.stopPropagation();'
onseeking='return startSeek();' onseeking='return startSeek();'
ontimeupdate='return timeUpdated();'></video> ontimeupdate='return timeUpdated();'></video>
</body> </body>