Bug 967357 - Null check MediaResource principal to prevent assertion spam. r=roc

This commit is contained in:
Chris Pearce 2014-02-05 10:34:15 +13:00
parent 2d0f2842b3
commit 29b03a5bc6

View File

@ -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];