idle-detection: Add test for full activation in requestPermission()
Adds a Web Platform Test for the "document is fully active" check in the
requestPermission() method steps and fixes the behavior in that case to
return a rejected promise rather than returning undefined.
Change-Id: I85c3487ef0a26fe0d35d13c05da0b605108a9be1
Bug: None
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5847720
Reviewed-by: Jeffrey Yasskin jyasskin@google.com
Commit-Queue: Reilly Grant reillyg@chromium.org
Cr-Commit-Position: refs/heads/main@{#1353502}