Skip to content

Commit

Permalink
Merge pull request #284 from beverloo/secure-context
Browse files Browse the repository at this point in the history
Add [SecureContext] annotations to our interfaces
  • Loading branch information
martinthomson committed Aug 22, 2017
2 parents 263cbe6 + 16dca29 commit 976d916
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ <h2>
[[!SERVICE-WORKERS]], which this specification extends.
</p>
<pre class="idl">
[SecureContext]
partial interface ServiceWorkerRegistration {
readonly attribute PushManager pushManager;
};
Expand All @@ -685,7 +686,7 @@ <h2>
The <a>PushManager</a> interface defines the operations to access <a>push services</a>.
</p>
<pre class="idl">
[Exposed=(Window,Worker)]
[Exposed=(Window,Worker), SecureContext]
interface PushManager {
[SameObject] static readonly attribute FrozenArray&lt;DOMString&gt; supportedContentEncodings;

Expand Down Expand Up @@ -864,7 +865,7 @@ <h2>
(BufferSource or DOMString)? applicationServerKey = null;
};

[Exposed=(Window,Worker)]
[Exposed=(Window,Worker), SecureContext]
interface PushSubscriptionOptions {
readonly attribute boolean userVisibleOnly;
[SameObject] readonly attribute ArrayBuffer? applicationServerKey;
Expand Down Expand Up @@ -912,7 +913,7 @@ <h2>
A <a>PushSubscription</a> object represents a <a>push subscription</a>.
</p>
<pre class="idl">
[Exposed=(Window,Worker)]
[Exposed=(Window,Worker), SecureContext]
interface PushSubscription {
readonly attribute USVString endpoint;
readonly attribute DOMTimeStamp? expirationTime;
Expand Down Expand Up @@ -1104,7 +1105,7 @@ <h2>
<dfn>PushMessageData</dfn> interface
</h2>
<pre class="idl">
[Exposed=ServiceWorker]
[Exposed=ServiceWorker, SecureContext]
interface PushMessageData {
ArrayBuffer arrayBuffer();
Blob blob();
Expand Down Expand Up @@ -1174,7 +1175,7 @@ <h2>
interface [[!SERVICE-WORKERS]], which this specification extends.
</p>
<pre class="idl">
[Exposed=(Window,Worker)]
[Exposed=ServiceWorker, SecureContext]
partial interface ServiceWorkerGlobalScope {
attribute EventHandler onpush;
attribute EventHandler onpushsubscriptionchange;
Expand Down Expand Up @@ -1233,7 +1234,7 @@ <h2>
PushMessageDataInit data;
};

[Constructor(DOMString type, optional PushEventInit eventInitDict), Exposed=ServiceWorker]
[Constructor(DOMString type, optional PushEventInit eventInitDict), Exposed=ServiceWorker, SecureContext]
interface PushEvent : ExtendableEvent {
readonly attribute PushMessageData? data;
};
Expand Down Expand Up @@ -1396,7 +1397,7 @@ <h2>
PushSubscription oldSubscription = null;
};

[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict), Exposed=ServiceWorker]
[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict), Exposed=ServiceWorker, SecureContext]
interface PushSubscriptionChangeEvent : ExtendableEvent {
readonly attribute PushSubscription? newSubscription;
readonly attribute PushSubscription? oldSubscription;
Expand Down

0 comments on commit 976d916

Please sign in to comment.