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: Thomas Steiner via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Mar 2019 10:53:23 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-471952065-1552388001-sysbot+gh@w3.org>
> 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?

Since `c.html` is then (i.e., after clicking the button) not fully active, I would say the wake lock should not be granted if the script `<script>navigator.getWakeLock()</script>` runs at that time (i.e., after clicking the button). @kenchris, what do you think?

GitHub Notification of comment by tomayac
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/141#issuecomment-471952065 using your GitHub account
Received on Tuesday, 12 March 2019 10:53:24 UTC

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