Backed out changeset fe753b00f953 (bug 1701276) for wpt fails on resource-selection-currentSrc.html. CLOSED TREE
This commit is contained in:
@@ -6603,17 +6603,9 @@ void HTMLMediaElement::FireTimeUpdate(TimeupdateType aType) {
|
||||
MediaError* HTMLMediaElement::GetError() const { return mErrorSink->mError; }
|
||||
|
||||
void HTMLMediaElement::GetCurrentSpec(nsCString& aString) {
|
||||
// If playing a regular URL, an ObjectURL of a Blob/File, return that.
|
||||
if (mLoadingSrc) {
|
||||
mLoadingSrc->GetSpec(aString);
|
||||
} else if (mSrcMediaSource) {
|
||||
// If playing an ObjectURL, and it's a MediaSource, return the value of the
|
||||
// `src` attribute.
|
||||
nsAutoString src;
|
||||
GetSrc(src);
|
||||
CopyUTF16toUTF8(src, aString);
|
||||
} else {
|
||||
// Playing e.g. a MediaStream via an object URL - return an empty string
|
||||
aString.Truncate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user