Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE

This commit is contained in:
Ciure Andrei
2020-02-27 07:05:19 +02:00
parent 2adb5ce822
commit c06273c350
276 changed files with 19236 additions and 403 deletions

View File

@@ -1179,6 +1179,13 @@ HTMLMediaElement::MediaLoadListener::OnStartRequest(nsIRequest* aRequest) {
return NS_BINDING_ABORTED;
}
// Media element playback is not currently supported when recording or
// replaying. See bug 1304146.
if (recordreplay::IsRecordingOrReplaying()) {
mElement->ReportLoadError("Media elements not available when recording");
return NS_ERROR_NOT_AVAILABLE;
}
// The element is only needed until we've had a chance to call
// InitializeDecoderForChannel. So make sure mElement is cleared here.
RefPtr<HTMLMediaElement> element;