Loading dom/base/Navigator.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -1283,6 +1283,11 @@ void Navigator::MozGetUserMedia(const MediaStreamConstraints& aConstraints, aRv.ThrowInvalidStateError("The document is not fully active."); return; } if (Document* doc = mWindow->GetExtantDoc()) { if (!mWindow->IsSecureContext()) { doc->SetUseCounter(eUseCounter_custom_MozGetUserMediaInsec); } } RefPtr<MediaManager::StreamPromise> sp; if (!MediaManager::IsOn(aConstraints.mVideo) && !MediaManager::IsOn(aConstraints.mAudio)) { Loading Loading @@ -1329,11 +1334,6 @@ void Navigator::MozGetUserMediaDevices( aRv.Throw(NS_ERROR_NOT_AVAILABLE); return; } if (Document* doc = mWindow->GetExtantDoc()) { if (!mWindow->IsSecureContext()) { doc->SetUseCounter(eUseCounter_custom_MozGetUserMediaInsec); } } RefPtr<MediaManager> manager = MediaManager::Get(); // XXXbz aOnError seems to be unused? nsCOMPtr<nsPIDOMWindowInner> window(mWindow); Loading Loading
dom/base/Navigator.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -1283,6 +1283,11 @@ void Navigator::MozGetUserMedia(const MediaStreamConstraints& aConstraints, aRv.ThrowInvalidStateError("The document is not fully active."); return; } if (Document* doc = mWindow->GetExtantDoc()) { if (!mWindow->IsSecureContext()) { doc->SetUseCounter(eUseCounter_custom_MozGetUserMediaInsec); } } RefPtr<MediaManager::StreamPromise> sp; if (!MediaManager::IsOn(aConstraints.mVideo) && !MediaManager::IsOn(aConstraints.mAudio)) { Loading Loading @@ -1329,11 +1334,6 @@ void Navigator::MozGetUserMediaDevices( aRv.Throw(NS_ERROR_NOT_AVAILABLE); return; } if (Document* doc = mWindow->GetExtantDoc()) { if (!mWindow->IsSecureContext()) { doc->SetUseCounter(eUseCounter_custom_MozGetUserMediaInsec); } } RefPtr<MediaManager> manager = MediaManager::Get(); // XXXbz aOnError seems to be unused? nsCOMPtr<nsPIDOMWindowInner> window(mWindow); Loading