зеркало из https://github.com/mozilla/gecko-dev.git
06a43c8cd0
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 |
||
---|---|---|
.. | ||
PowerManagerService.cpp | ||
PowerManagerService.h | ||
WakeLock.cpp | ||
WakeLock.h | ||
moz.build | ||
nsIDOMWakeLockListener.idl | ||
nsIPowerManagerService.idl | ||
nsIWakeLock.idl |