Skip to content

Commit

Permalink
Add PushManager.supportedContentEncodings (#252)
Browse files Browse the repository at this point in the history
Fixes #251
  • Loading branch information
beverloo committed Apr 25, 2017
1 parent eb11817 commit 813f9af
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ <h2>
specification assumes the use of this protocol; alternative protocols are expected to
provide compatible semantics.
</p>
<p>
The <dfn>Content-Encoding</dfn> HTTP header, described in Section 3.1.2.2 of [[!RFC7231]],
indicates the content coding applied to the payload of a <a>push message</a>.
</p>
</section>
<section>
<h2>
Expand Down Expand Up @@ -642,11 +646,24 @@ <h2>
</p>
<pre class="idl">
interface PushManager {
[SameObject] static readonly attribute FrozenArray&lt;DOMString&gt; supportedContentEncodings;

Promise&lt;PushSubscription&gt; subscribe(optional PushSubscriptionOptionsInit options);
Promise&lt;PushSubscription?&gt; getSubscription();
Promise&lt;PushPermissionState&gt; permissionState(optional PushSubscriptionOptionsInit options);
};
</pre>
<p>
The <dfn>supportedContentEncodings</dfn> attribute exposes the sequence of supported content
codings that can be used to encrypt the payload of a <a>push message</a>. A content coding
is indicated using the <a>Content-Encoding</a> header field when requesting the sending of
a <a>push message</a> from the <a>push service</a>.
</p>
<p>
<a>User agents</a> MUST support the <code>aes128gcm</code> content coding defined in
[[!WEBPUSH-ENCRYPTION]], and MAY support content codings defined in previous versions of
the draft for compatibility reasons.
</p>
<p>
The <dfn>subscribe</dfn> method when invoked MUST run the following steps:
</p>
Expand Down

0 comments on commit 813f9af

Please sign in to comment.