mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +00:00
Bug 891706 - Crash in mozilla::dom::MediaRecorder::CheckPrincipal() when closing a tab while recording is started. r=roc
This commit is contained in:
parent
b840654f10
commit
d54fec6c82
@ -355,6 +355,8 @@ MediaRecorder::NotifyError(nsresult aRv)
|
||||
bool MediaRecorder::CheckPrincipal()
|
||||
{
|
||||
nsCOMPtr<nsIPrincipal> principal = mStream->GetPrincipal();
|
||||
if (!GetOwner())
|
||||
return false;
|
||||
nsCOMPtr<nsIDocument> doc = GetOwner()->GetExtantDoc();
|
||||
if (!doc || !principal)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user