зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1164977 - Prevent MediaStreamAudioSourceNode from passing null to nsIPrincipal::subsumes. r=padenot
This commit is contained in:
Родитель
9b0ee77669
Коммит
d01547fedb
|
@ -80,7 +80,7 @@ MediaStreamAudioSourceNode::PrincipalChanged(DOMMediaStream* aDOMMediaStream)
|
|||
if (doc) {
|
||||
nsIPrincipal* docPrincipal = doc->NodePrincipal();
|
||||
nsIPrincipal* streamPrincipal = mInputStream->GetPrincipal();
|
||||
if (NS_FAILED(docPrincipal->Subsumes(streamPrincipal, &subsumes))) {
|
||||
if (!streamPrincipal || NS_FAILED(docPrincipal->Subsumes(streamPrincipal, &subsumes))) {
|
||||
subsumes = false;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче