Skip to content

Commit

Permalink
requestPermission() should not be exposed to workers. http://lists.w3…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 28, 2014
1 parent 7556f1e commit cd7c05b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-notifications.svg" width="100"></a></p>
<h1>Notifications API</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-9-june-2014">Living Standard — Last Updated 9 June 2014</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-28-july-2014">Living Standard — Last Updated 28 July 2014</h2>

<dl>
<dt>This Version:
Expand Down Expand Up @@ -36,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-9-june-2014">Livi
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editors have waived all copyright and
related or neighboring rights to this work. In addition, as of
9 June 2014, the editors have made this specification available
28 July 2014, the editors have made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
Expand Down Expand Up @@ -413,10 +413,10 @@ <h2 id="api"><span class="secno">5 </span>API</h2>
<a href="#notification"><code>Notification</code></a>'s <a href="#dom-notification" title="dom-Notification">constructor</a>.

<pre class="idl">[<a href="#dom-notification" title="dom-Notification">Constructor</a>(DOMString <var title="">title</var>, optional <a href="#notificationoptions">NotificationOptions</a> <var title="">options</var>),
Exposed=Window,Worker]
Exposed=(Window,Worker)]
interface <dfn id="notification">Notification</dfn> : <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#eventtarget">EventTarget</a> {
static readonly attribute <a href="#notificationpermission">NotificationPermission</a> <a href="#dom-notification-permission" title="dom-Notification-permission">permission</a>;
static void <a href="#dom-notification-requestpermission" title="dom-Notification-requestPermission">requestPermission</a>(optional <a href="#notificationpermissioncallback">NotificationPermissionCallback</a> <var title="">callback</var>);
[Exposed=Window] static void <a href="#dom-notification-requestpermission" title="dom-Notification-requestPermission">requestPermission</a>(optional <a href="#notificationpermissioncallback">NotificationPermissionCallback</a> <var title="">callback</var>);

static Promise&lt;sequence&lt;<a href="#notification">Notification</a>&gt;&gt; <a href="#dom-notification-getclones" title="dom-Notification-getClones">getClones</a>(optional <a href="#getnotificationclonesoptions">GetNotificationClonesOptions</a> <var title="">filter</var>);

Expand Down
4 changes: 2 additions & 2 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ <h2>API</h2>
<code>Notification</code>'s <span title=dom-Notification>constructor</span>.

<pre class="idl">[<span title=dom-Notification>Constructor</span>(DOMString <var title>title</var>, optional <span>NotificationOptions</span> <var title>options</var>),
Exposed=Window,Worker]
Exposed=(Window,Worker)]
interface <dfn>Notification</dfn> : <span data-anolis-spec=dom>EventTarget</span> {
static readonly attribute <span>NotificationPermission</span> <span title=dom-Notification-permission>permission</span>;
static void <span title=dom-Notification-requestPermission>requestPermission</span>(optional <span>NotificationPermissionCallback</span> <var title>callback</var>);
[Exposed=Window] static void <span title=dom-Notification-requestPermission>requestPermission</span>(optional <span>NotificationPermissionCallback</span> <var title>callback</var>);

static Promise&lt;sequence&lt;<span>Notification</span>>> <span title=dom-Notification-getClones>getClones</span>(optional <span>GetNotificationClonesOptions</span> <var title>filter</var>);

Expand Down

0 comments on commit cd7c05b

Please sign in to comment.