Skip to content

Commit

Permalink
SECURE: Regenerate HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewest committed Sep 9, 2015
1 parent ef42844 commit 9e309c2
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions specs/powerfulfeatures/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,16 @@ <h2 class="heading settled" data-level="2" id="terms"><span class="secno">2. </s
<li>
A <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/dom/#interface-document">Document</a></code> is considered a <dfn data-dfn-type="dfn" data-export="" id="secure-document">secure document<a class="self-link" href="#secure-document"></a></dfn>
if the algorithm defined in <a href="#settings-secure">§5.1 Is settings object a secure context?</a> returns
<code>Secure</code> when executed upon its <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#incumbent-settings-object">incumbent settings
object</a>.
<code>Secure</code> when executed upon its <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#global-object">global object</a>’s
<a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#relevant-settings-object-for-a-global-object">relevant settings object</a>.



<li>
A <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/workers/#worker">Worker</a></code>, <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/workers/#sharedworker">SharedWorker</a></code>, or <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/service-workers/#service-worker-obj">ServiceWorker</a></code> is considered a
<dfn data-dfn-type="dfn" data-export="" id="secure-worker">secure worker<a class="self-link" href="#secure-worker"></a></dfn> if the algorithm defined in
<a href="#settings-secure">§5.1 Is settings object a secure context?</a> returns <code>Secure</code> when executed
upon its <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#incumbent-settings-object">incumbent settings object</a>.
upon its <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#global-object">global object</a>’s <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#relevant-settings-object-for-a-global-object">relevant settings object</a>.



Expand Down Expand Up @@ -454,26 +454,31 @@ <h3 class="heading settled" data-level="4.1" id="new"><span class="secno">4.1. <
would be a good approach:</p>


<div class="example" id="example-8ce7bce2"><a class="self-link" href="#example-8ce7bce2"></a>
<div class="example" id="example-e045c7ea"><a class="self-link" href="#example-e045c7ea"></a>

<ol>

<li>
If the <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#incumbent-settings-object">incumbent settings object</a> is not a <a data-link-type="dfn" href="#secure-context">secure
context</a>, then [<i>insert something appropriate here: perhaps you
could reject a Promise with a <code>SecurityError</code>, call an error
callback, deny a permission request, etc.</i>].
context</a>, then:


<ol>

<li>
[<i>insert something appropriate here: perhaps a Promise could be
rejected with a <code>SecurityError</code>, an error callback could
be called, a permission request denied, etc.</i>].



</ol>




</ol>



<p class="note" role="note">Note: If you choose to copy/paste the above text for your spec, do remember
to put an action appropriate for your use case in place of the placeholder
text.</p>


</div>

Expand Down Expand Up @@ -606,8 +611,8 @@ <h3 class="heading settled" data-level="5.1" id="settings-secure"><span class="s
<ol>

<li>
If <var>settings</var>' <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-tls-state">TLS state</a> is <strong>not</strong>
<code>authenticated</code>:
If <var>settings</var>' <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-https-state">HTTPS state</a> is <strong>not</strong>
<code>modern</code>:


<ol>
Expand Down Expand Up @@ -647,8 +652,8 @@ <h3 class="heading settled" data-level="5.1" id="settings-secure"><span class="s



<p class="issue" id="issue-60c8add0"><a class="self-link" href="#issue-60c8add0"></a> <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-tls-state">TLS State</a> is poorly defined. For example, we should ensure
that sandboxed documents retain the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-tls-state">TLS State</a>
<p class="issue" id="issue-a3d367b1"><a class="self-link" href="#issue-a3d367b1"></a> <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-https-state">HTTPS state</a> is poorly defined. For example, we should ensure
that sandboxed documents retain the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-https-state">HTTPS state</a>
associated with their transport mechanism. See
<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27190">bug
27190</a>.</p>
Expand Down Expand Up @@ -688,8 +693,8 @@ <h3 class="heading settled" data-level="5.1" id="settings-secure"><span class="s

<li>
If the <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#relevant-settings-object-for-a-global-object">relevant settings object</a> for <var>ancestor</var>’s
<a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#global-object">global object</a> has a <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-tls-state">TLS State</a> of
<code>Authenticated</code>, skip to the next
<a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#global-object">global object</a> has a <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-https-state">HTTPS state</a> of
<code>modern</code>, skip to the next
<var>ancestor</var>.


Expand Down Expand Up @@ -723,7 +728,7 @@ <h3 class="heading settled" data-level="5.1" id="settings-secure"><span class="s
<p class="note" role="note">Note: If <var>settings</var> maps to a <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/dom/#interface-document">Document</a></code> (either directly,
or as the <a data-link-type="dfn" href="http://www.w3.org/TR/html5/webappapis.html#responsible-document">responsible document</a> of a <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/workers/#worker">Worker</a></code>), we’ll walk all
the way up the document’s ancestor chain to verify that the whole chain
is secur</p>
is secure.</p>



Expand Down Expand Up @@ -968,7 +973,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
</ul>
<li><a data-link-type="biblio" href="#biblio-fetch">[FETCH]</a> defines the following terms:
<ul>
<li><a href="https://fetch.spec.whatwg.org/#concept-response-tls-state">tls state</a>
<li><a href="https://fetch.spec.whatwg.org/#concept-response-https-state">https state</a>
</ul>
<li><a data-link-type="biblio" href="#biblio-geolocation-api">[geolocation-API]</a> defines the following terms:
<ul>
Expand Down Expand Up @@ -1079,10 +1084,10 @@ <h2 class="no-num heading settled" id="issues-index"><span class="content">Issue
gets produced as a result of
<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27146">bug
27146</a>.<a href="#issue-ed0737af"></a></div>
<div class="issue"> <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-tls-state">TLS State</a> is poorly defined. For example, we should ensure
that sandboxed documents retain the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-tls-state">TLS State</a>
<div class="issue"> <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-https-state">HTTPS state</a> is poorly defined. For example, we should ensure
that sandboxed documents retain the <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-response-https-state">HTTPS state</a>
associated with their transport mechanism. See
<a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27190">bug
27190</a>.<a href="#issue-60c8add0"></a></div>
27190</a>.<a href="#issue-a3d367b1"></a></div>
<div class="issue"> WHATWG’s HTML, because W3C’s Worker definition is obsolete.<a href="#issue-e196b12f"></a></div></div></body>
</html>

0 comments on commit 9e309c2

Please sign in to comment.