mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 967357 - Null check MediaResource principal to prevent assertion spam. r=roc
This commit is contained in:
parent
2d0f2842b3
commit
29b03a5bc6
@ -3359,7 +3359,8 @@ void HTMLMediaElement::NotifyDecoderPrincipalChanged()
|
||||
|
||||
bool subsumes;
|
||||
mDecoder->UpdateSameOriginStatus(
|
||||
NS_SUCCEEDED(NodePrincipal()->Subsumes(principal, &subsumes)) && subsumes);
|
||||
!principal ||
|
||||
(NS_SUCCEEDED(NodePrincipal()->Subsumes(principal, &subsumes)) && subsumes));
|
||||
|
||||
for (uint32_t i = 0; i < mOutputStreams.Length(); ++i) {
|
||||
OutputMediaStream* ms = &mOutputStreams[i];
|
||||
|
Loading…
Reference in New Issue
Block a user