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

Asking for permission might automatically fail from a SW #271

Merged
merged 1 commit into from
Jun 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,9 @@ <h2>
</li>
<li>Ask the user whether they allow the <a>webapp</a> to receive <a>push messages</a>,
unless a prearranged trust relationship applies or the user has already granted or denied
permission explicitly for this <a>webapp</a>.
permission explicitly for this <a>webapp</a>. Note that a <a>user agent</a> that needs to
request permission might be unable to do so if <a data-link-for="PushManager">subscribe</a>
is invoked from a service worker, in which case permission will be denied automatically.
</li>
<li>If not granted, reject <var>promise</var> with a <a>DOMException</a> whose name is
"<a>NotAllowedError</a>" and terminate these steps.
Expand Down