Skip to content
Open
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
18 changes: 13 additions & 5 deletions notifications.bs
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,12 @@ constructor steps are:
<p>Run these steps <a>in parallel</a>:

<ol>
<li><p>If the result of <a>getting the notifications permission state</a> is not
"<code>granted</code>", then <a>queue a task</a> to <a>fire an event</a> named
<code>error</code> on <a>this</a>, and abort these steps.
<li><p>If <a>this</a>'s <a>relevant settings object</a>'s
<a for="environment settings object">origin</a> is not <a>same origin</a> with <a>this</a>'s
<a>relevant settings object</a>'s <a for="environment">top-level origin</a> or the result of
<a>getting the notifications permission state</a> is not "<code>granted</code>", then
<a>queue a task</a> to <a>fire an event</a> named <code>error</code> on <a>this</a>, and abort
these steps.

<li><p>Run the <a for=/>notification show steps</a> for <var>notification</var>.
</ol>
Expand Down Expand Up @@ -838,8 +841,13 @@ method steps are:
<p>Run these steps <a>in parallel</a>:

<ol>
<li><p>Let <var>permissionState</var> be the result of
<a>requesting permission to use</a> "<a permission><code>notifications</code></a>".
<li><p>Let <var>permissionState</var> be "<code>denied</code>".

<li><p>If <a>this</a>'s <a>relevant settings object</a>'s
<a for="environment settings object">origin</a> is <a>same origin</a> with <a>this</a>'s
<a>relevant settings object</a>'s <a for="environment">top-level origin</a>, then set
<var>permissionState</var> to the result of <a>requesting permission to use</a>
"<a permission><code>notifications</code></a>".

<li>
<p><a>Queue a global task</a> on the <a>DOM manipulation task source</a> given <var>global</var>
Expand Down