Bug 1122678: Fix behavior of SetMozSrcObject when passed a nullptr. r=derf

This commit is contained in:
Byron Campen [:bwc]
2015-01-16 11:19:12 -08:00
parent f7843bc4a5
commit f99812c59f

View File

@@ -527,14 +527,14 @@ HTMLMediaElement::GetMozSrcObject() const
void
HTMLMediaElement::SetMozSrcObject(DOMMediaStream& aValue)
{
mSrcAttrStream = &aValue;
Load();
SetMozSrcObject(&aValue);
}
void
HTMLMediaElement::SetMozSrcObject(DOMMediaStream* aValue)
{
SetMozSrcObject(*aValue);
mSrcAttrStream = aValue;
Load();
}
/* readonly attribute nsIDOMHTMLMediaElement mozAutoplayEnabled; */