Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove permission check #366

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open

Remove permission check #366

wants to merge 3 commits into from

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Dec 18, 2023

Just picking this up again...

Closes #324

The following tasks have been completed:

Implementation commitment:


Preview | Diff

@@ -327,81 +269,43 @@ <h3>
|document|, return [=a promise rejected with=] a
{{"NotAllowedError"}} {{DOMException}}.
</li>
<li data-tests="wakelock-active-document.https.window.html">If
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this to #367 ... should be done first

@marcoscaceres marcoscaceres requested review from reillyeon and removed request for rakuco April 8, 2024 06:38
index.html Outdated
Comment on lines 276 to 279
<li>If |document|'s [=Document/visibility state=] is "hidden", then
return [=a promise rejected with=] with a {{"NotAllowedError"}}
{{DOMException}}.
</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this. It looks like it got duplicated during a merge.

index.html Outdated Show resolved Hide resolved
<ol>
<li>Set |lock|'s {{WakeLockSentinel/[[Released]]}} to `true`.
</li>
<li>[=Fire an event=] named "`release`" at |lock|.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An event is already fired at the end of these steps. I think moving this into a task on the screen wake lock task source is the right move but it's probably best to just wrap all the steps in that since they're manipulating properties of the document.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, yeah.

Co-authored-by: Reilly Grant <reillyeon@users.noreply.github.com>
index.html Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should this prompt?
2 participants