Bug 1373888 - part3 : rename the topic of the wake lock. r=cpearce

For knowing the wake lock usage more clearly, we should use more specific topic name.

In OSX, you can use "$ pmset -g assertions" to check all the wakelock.
In Windows, using "$ powser -energy" to generate the energy report.

MozReview-Commit-ID: rAXnkxTvLc
This commit is contained in:
Alastor Wu
2017-08-29 10:54:28 +08:00
parent 07f2b0f9cf
commit 625653c168
5 changed files with 11 additions and 5 deletions

View File

@@ -4189,7 +4189,7 @@ HTMLMediaElement::WakeLockCreate()
NS_ENSURE_TRUE_VOID(pmService);
ErrorResult rv;
mWakeLock = pmService->NewWakeLock(NS_LITERAL_STRING("cpu"),
mWakeLock = pmService->NewWakeLock(NS_LITERAL_STRING("audio-playing"),
OwnerDoc()->GetInnerWindow(),
rv);
}