W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2019

Re: [wake-lock] Subtleties of using Document are not specced (#141)

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 Mar 2019 20:34:26 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-471067537-1552077265-sysbot+gh@w3.org>
By using responsible document (i.e. window's associated Document), you are ensuring that the document is always active. However, you are not ensuring the document is fully active.

That may be fine, but if so, I want to make sure it's an intentional choice, ideally with web platform tests.

Concretely, look at the example in https://html.spec.whatwg.org/multipage/browsers.html#fully-active . If `c.html` contains `<script>navigator.getWakeLock()</script>`, what should happen, if that script runs after clicking the button and navigating the outer iframe?

GitHub Notification of comment by domenic
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/141#issuecomment-471067537 using your GitHub account
Received on Friday, 8 March 2019 20:34:27 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:56 UTC