Bug 1423241 - Remove screen-wakelock code that no longer has an effect. r=alwu

Differential Revision: https://phabricator.services.mozilla.com/D9102
This commit is contained in:
Andreas Pehrson
2018-11-23 15:01:18 +00:00
parent 2464b2c177
commit aa36cf76cb

View File

@@ -2598,14 +2598,6 @@ HTMLMediaElement::NotifyMediaStreamTracksAvailable(DOMMediaStream* aStream)
mSrcStreamTracksAvailable = true;
bool videoHasChanged = IsVideo() && HasVideo() != !VideoTracks()->IsEmpty();
if (videoHasChanged) {
// We are a video element and HasVideo() changed so update the screen
// wakelock
NotifyOwnerDocumentActivityChanged();
}
FirstFrameLoaded();
UpdateReadyStateInternal();
}