#457: M1419363 + WeakPtr support from M1267918

This commit is contained in:
Cameron Kaiser
2018-01-15 15:29:43 -08:00
parent f1e53a0c01
commit ec2be8cb3f
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -3110,11 +3110,13 @@ public:
{
NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
if (MOZ_UNLIKELY(!mElement)) return; // bug 1419363
mElement->NotifyMediaStreamTracksAvailable(aStream);
}
private:
HTMLMediaElement* mElement;
WeakPtr<HTMLMediaElement> mElement;
};
class HTMLMediaElement::MediaStreamTrackListener :