gecko-dev/dom/power
alwu 06a43c8cd0 Bug 1659060 - part1 : treat lock visible if corresponding document has in use picture-in-picture element. r=bryce,smaug
When a tab is in the background, its document visibility would become invisible even if a tab owns a video which is visible because of being used in picture in picture mode.

When a document changes its visibility, the wakelock would change its lockstate from `lock-foreground` to `lock-background`. For `video-playing` wakelock topic, we would only request a real platform lock for `lock-foreground` because we don't want to prevent screen from sleeping if the video is invisible.

Therefore, considering if video is being used in picture in picture mode, when determining the wakelock's visible state. If video is still being used in picture in picture mode, then we would treat wakelock as if it's in foreground in order to keep a screen lock.

Differential Revision: https://phabricator.services.mozilla.com/D90781
2020-09-23 23:34:12 +00:00
..
PowerManagerService.cpp Bug 1626570 - Improve handling of copying arrays in dom/power/. r=smaug 2020-05-06 11:55:10 +00:00
PowerManagerService.h
WakeLock.cpp Bug 1659060 - part1 : treat lock visible if corresponding document has in use picture-in-picture element. r=bryce,smaug 2020-09-23 23:34:12 +00:00
WakeLock.h
moz.build
nsIDOMWakeLockListener.idl
nsIPowerManagerService.idl
nsIWakeLock.idl