Skip to content

Conversation

beverloo
Copy link
Member

Fixes #251

@beverloo beverloo requested a review from martinthomson April 21, 2017 17:50
@beverloo
Copy link
Member Author

I'm sure the phrasing can be improved, @martinthomson. Most open to suggestions!

index.html Outdated
@@ -314,6 +314,10 @@
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]],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RFC style guide references sections using "Section 3.1.2.2", capital on Section and no trailing period.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -642,12 +646,25 @@
</p>
<pre class="idl">
interface PushManager {
[SameObject] static readonly attribute FrozenArray&lt;DOMString&gt; supportedContentEncodings;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it's called a content coding, but the header is content-encoding. I think that supportedContentEncodings is probably the best choice, because other than us nerds who work on this stuff, the difference is meaningless.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed - the developer is exposed to the Content-Encoding header more than the fact it accepts a (list of) content coding.

index.html Outdated
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 using which the payload of a <a>push message</a> can be encrypted. When a content
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"... codings that can be used to encrypt the payload of a push message."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

index.html Outdated
The <dfn>supportedContentEncodings</dfn> attribute exposes the sequence of supported content
codings using which the payload of a <a>push message</a> can be encrypted. When a content
coding is used, it MUST be set in the <a>Content-Encoding</a> HTTP header when sending a
<a>push message</a> to the <a>push service</a>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that you want the MUST requirement here.

"A content coding is indicated using the Content-Encoding header field when requesting the sending of a push message from the push service." ...Maybe.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I considered changing it around (sending from the AS) but there's other cases too, so I adopted your suggestion.

@beverloo beverloo force-pushed the supported-encodings branch from 72e89f4 to 0bae071 Compare April 25, 2017 16:11
Copy link
Member Author

@beverloo beverloo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

index.html Outdated
@@ -314,6 +314,10 @@
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]],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -642,12 +646,25 @@
</p>
<pre class="idl">
interface PushManager {
[SameObject] static readonly attribute FrozenArray&lt;DOMString&gt; supportedContentEncodings;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed - the developer is exposed to the Content-Encoding header more than the fact it accepts a (list of) content coding.

index.html Outdated
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 using which the payload of a <a>push message</a> can be encrypted. When a content
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

index.html Outdated
The <dfn>supportedContentEncodings</dfn> attribute exposes the sequence of supported content
codings using which the payload of a <a>push message</a> can be encrypted. When a content
coding is used, it MUST be set in the <a>Content-Encoding</a> HTTP header when sending a
<a>push message</a> to the <a>push service</a>.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I considered changing it around (sending from the AS) but there's other cases too, so I adopted your suggestion.

@beverloo beverloo merged commit 813f9af into w3c:gh-pages Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants