mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
55a463e643
commit
e18446fcd0
@ -355,6 +355,8 @@ MediaRecorder::NotifyError(nsresult aRv)
|
|||||||
bool MediaRecorder::CheckPrincipal()
|
bool MediaRecorder::CheckPrincipal()
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIPrincipal> principal = mStream->GetPrincipal();
|
nsCOMPtr<nsIPrincipal> principal = mStream->GetPrincipal();
|
||||||
|
if (!GetOwner())
|
||||||
|
return false;
|
||||||
nsCOMPtr<nsIDocument> doc = GetOwner()->GetExtantDoc();
|
nsCOMPtr<nsIDocument> doc = GetOwner()->GetExtantDoc();
|
||||||
if (!doc || !principal)
|
if (!doc || !principal)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user