зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1733109 - local copy 'handle' of the variable 'aPrincipalHandle' is never modified; consider avoiding the copy in HTMLMediaElement.cpp. r=alwu
Depends on D126942 Differential Revision: https://phabricator.services.mozilla.com/D126943
This commit is contained in:
Родитель
0f7d0e3beb
Коммит
915a3a4d1a
|
@ -6164,9 +6164,8 @@ void HTMLMediaElement::UpdateSrcStreamVideoPrincipal(
|
||||||
nsTArray<RefPtr<VideoStreamTrack>> videoTracks;
|
nsTArray<RefPtr<VideoStreamTrack>> videoTracks;
|
||||||
mSrcStream->GetVideoTracks(videoTracks);
|
mSrcStream->GetVideoTracks(videoTracks);
|
||||||
|
|
||||||
PrincipalHandle handle(aPrincipalHandle);
|
|
||||||
for (const RefPtr<VideoStreamTrack>& track : videoTracks) {
|
for (const RefPtr<VideoStreamTrack>& track : videoTracks) {
|
||||||
if (PrincipalHandleMatches(handle, track->GetPrincipal()) &&
|
if (PrincipalHandleMatches(aPrincipalHandle, track->GetPrincipal()) &&
|
||||||
!track->Ended()) {
|
!track->Ended()) {
|
||||||
// When the PrincipalHandle for the VideoFrameContainer changes to that of
|
// When the PrincipalHandle for the VideoFrameContainer changes to that of
|
||||||
// a live track in mSrcStream we know that a removed track was displayed
|
// a live track in mSrcStream we know that a removed track was displayed
|
||||||
|
|
Загрузка…
Ссылка в новой задаче