Skip to content

Commit

Permalink
Clarify recommendation for restricting new features.
Browse files Browse the repository at this point in the history
w3c/webcrypto#28 noted that the current recommendations were confusing
as they suggested both throwing and hiding the interface. This patch
clarifies that either/or is completely acceptable.
  • Loading branch information
mikewest committed Jul 15, 2016
1 parent 6dd836b commit f99c897
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,7 @@ <h3 class="heading settled" data-level="7.3" id="new"><span class="secno">7.3. <
</ol>
</ol>
</div>
<p>Authors should also ensure that sensitive APIs are only exposed to <a data-link-type="dfn" href="#secure-context" id="ref-for-secure-context-32">secure
contexts</a> by guarding them with the <code>[SecureContext]</code> attribute:</p>
<p>Authors could alternatively ensure that sensitive APIs are only exposed to <a data-link-type="dfn" href="#secure-context" id="ref-for-secure-context-32">secure contexts</a> by guarding them with the <code>[SecureContext]</code> attribute:</p>
<div class="example" id="example-63db205d">
<a class="self-link" href="#example-63db205d"></a>
<pre class="idl highlight def">[<span class="nv" idltype="extended-attribute">SecureContext</span>]
Expand Down
4 changes: 2 additions & 2 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,8 @@ <h3 id="new">Restricting New Features</h3>
</ol>
</div>

Authors should also ensure that sensitive APIs are only exposed to <a>secure
contexts</a> by guarding them with the `[SecureContext]` attribute:
Authors could alternatively ensure that sensitive APIs are only exposed to
<a>secure contexts</a> by guarding them with the `[SecureContext]` attribute:

<div class="example">
<pre class="idl">
Expand Down

0 comments on commit f99c897

Please sign in to comment.