Skip to content

Commit

Permalink
CR comments from @plehegar.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewest committed Sep 15, 2016
1 parent e988d6d commit 480483f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 25 deletions.
35 changes: 21 additions & 14 deletions CR.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
<h1>Secure Contexts</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">W3C Candidate Recommendation, <time class="dt-updated" datetime="2016-08-30">30 August 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">W3C Candidate Recommendation, <time class="dt-updated" datetime="2016-09-15">15 September 2016</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
<dd><a class="u-url" href="https://www.w3.org/TR/2016/CR-secure-contexts-20160830/">https://www.w3.org/TR/2016/CR-secure-contexts-20160830/</a>
<dd><a class="u-url" href="https://www.w3.org/TR/2016/CR-secure-contexts-20160915/">https://www.w3.org/TR/2016/CR-secure-contexts-20160915/</a>
<dt>Latest published version:
<dd><a href="https://www.w3.org/TR/secure-contexts/">https://www.w3.org/TR/secure-contexts/</a>
<dt>Editor's Draft:
Expand Down Expand Up @@ -322,7 +322,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="status"><span class="conten
can be found in the <a href="https://www.w3.org/TR/">W3C technical reports
index at https://www.w3.org/TR/.</a></em> </p>
<p> This document was published by the <a href="https://www.w3.org/2011/webappsec/">Web Application Security Working Group</a> as a Candidate Recommendation. This document is intended to become a W3C Recommendation.
This document will remain a Candidate Recommendation at least until <time class="status-deadline" datetime="2016-09-20">20 September 2016</time> in order
This document will remain a Candidate Recommendation at least until <time class="status-deadline" datetime="2016-10-20">20 October 2016</time> in order
to ensure the opportunity for wide review. </p>
<p> The (<a href="https://lists.w3.org/Archives/Public/public-webappsec/">archived</a>) public mailing list <a href="mailto:public-webappsec@w3.org?Subject=%5Bsecure-contexts%5D%20PUT%20SUBJECT%20HERE">public-webappsec@w3.org</a> (see <a href="https://www.w3.org/Mail/Request">instructions</a>)
is preferred for discussion of this specification.
Expand Down Expand Up @@ -811,10 +811,10 @@ <h3 class="heading settled" data-level="2.1" id="integration-idl"><span class="s
<span class="kt">Promise</span> &lt;<span class="kt">double</span>> <span class="nv">calculateNotSoSecretResult</span>();

// This operation will not be exposed to a non-secure context.
[<span class="nv">SecureContext</span>] <span class="kt">Promise</span>&lt;<span class="kt">double</span>> <span class="nv">calculateSecretResult</span>();
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#SecureContext">[<span class="nv">SecureContext</span>]</a> <span class="kt">Promise</span>&lt;<span class="kt">double</span>> <span class="nv">calculateSecretResult</span>();

// The same applies here: the operation will not be exposed to a non-secure context.
[<span class="nv">SecureContext</span>] <span class="kt">boolean</span> <span class="nv">getSecretBoolean</span>();
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#SecureContext">[<span class="nv">SecureContext</span>]</a> <span class="kt">boolean</span> <span class="nv">getSecretBoolean</span>();
};

[<span class="nv">SecureContext</span>]
Expand Down Expand Up @@ -1351,6 +1351,13 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<ul>
<li><a href="https://w3c.github.io/webappsec-mixed-content/#a-priori-authenticated-url">a priori authenticated url</a>
</ul>
<li>
<a data-link-type="biblio">[WHATWG-URL]</a> defines the following terms:
<ul>
<li><a href="https://url.spec.whatwg.org/#url">URL</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-origin">origin</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-scheme">scheme</a>
</ul>
<li>
<a data-link-type="biblio">[W3C-PROCESS]</a> defines the following terms:
<ul>
Expand All @@ -1369,13 +1376,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://www.w3.org/TR/workers/#workerglobalscope">WorkerGlobalScope</a>
<li><a href="https://www.w3.org/TR/workers/#the-worker-s-documents">the worker's documents</a>
</ul>
<li>
<a data-link-type="biblio">[WHATWG-URL]</a> defines the following terms:
<ul>
<li><a href="https://url.spec.whatwg.org/#url">URL</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-origin">origin</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-scheme">scheme</a>
</ul>
</ul>
<h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
<h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
Expand All @@ -1393,7 +1393,10 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
<dt id="biblio-webworkers">[WEBWORKERS]
<dd>Ian Hickson. <a href="https://www.w3.org/TR/workers/">Web Workers</a>. 24 September 2015. WD. URL: <a href="https://www.w3.org/TR/workers/">https://www.w3.org/TR/workers/</a>
<dt id="biblio-whatwg-url">[WHATWG-URL]
<dd>Anne van Kesteren. <a href="https://url.spec.whatwg.org/">URL Standard</a>. Living Standard. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a>
<dd>
Anne van Kesteren. <a href="https://url.spec.whatwg.org/">URL Standard</a>. Living Standard. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a>
<p class="note" role="note">Note: URLs can be used in numerous different manners, in many differing contexts. For the purpose of producing strict URLs one may wish to consider <a data-link-type="biblio" href="#biblio-rfc3986">[RFC3986]</a> and <a data-link-type="biblio" href="#biblio-rfc3987">[RFC3987]</a>.</p>
</dd>
</dl>
<h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
<dl>
Expand All @@ -1417,6 +1420,10 @@ <h3 class="no-num no-ref heading settled" id="informative"><span class="content"
<dd>Mike West. <a href="https://www.w3.org/TR/mixed-content/">Mixed Content</a>. 2 August 2016. CR. URL: <a href="https://www.w3.org/TR/mixed-content/">https://www.w3.org/TR/mixed-content/</a>
<dt id="biblio-powerful-new-features">[POWERFUL-NEW-FEATURES]
<dd>Chrome Security Team. <a href="https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features">Prefer Secure Origins For Powerful New Features</a>. URL: <a href="https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features">https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features</a>
<dt id="biblio-rfc3986">[RFC3986]
<dd>T. Berners-Lee; R. Fielding; L. Masinter. <a href="https://tools.ietf.org/html/rfc3986">Uniform Resource Identifier (URI): Generic Syntax</a>. January 2005. Internet Standard. URL: <a href="https://tools.ietf.org/html/rfc3986">https://tools.ietf.org/html/rfc3986</a>
<dt id="biblio-rfc3987">[RFC3987]
<dd>M. Duerst; M. Suignard. <a href="https://tools.ietf.org/html/rfc3987">Internationalized Resource Identifiers (IRIs)</a>. January 2005. Proposed Standard. URL: <a href="https://tools.ietf.org/html/rfc3987">https://tools.ietf.org/html/rfc3987</a>
<dt id="biblio-rfc6265">[RFC6265]
<dd>A. Barth. <a href="https://tools.ietf.org/html/rfc6265">HTTP State Management Mechanism</a>. April 2011. Proposed Standard. URL: <a href="https://tools.ietf.org/html/rfc6265">https://tools.ietf.org/html/rfc6265</a>
<dt id="biblio-rfc6761">[RFC6761]
Expand Down Expand Up @@ -1593,4 +1600,4 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content
}

});
</script>
</script>
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index.html: index.src.html
bikeshed -f spec ./index.src.html

CR:
bikeshed -f spec --md-status=CR --md-deadline=2016-09-20 ./index.src.html ./CR.html
bikeshed -f spec --md-status=CR --md-deadline=2016-10-20 ./index.src.html ./CR.html

WD:
bikeshed -f spec --md-status=WD ./index.src.html ./WD.html
Expand Down
33 changes: 23 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,19 @@
border-left: 0.5em solid #DEF;
}

/* Put nice boxes around each algorithm. */
[data-algorithm]:not(.heading) {
padding: .5em;
border: thin solid #ddd; border-radius: .5em;
margin: .5em 0;
}
[data-algorithm]:not(.heading) > :first-child {
margin-top: 0;
}
[data-algorithm]:not(.heading) > :last-child {
margin-bottom: 0;
}

/* Style for switch/case <dl>s */
dl.switch > dd > ol.only,
dl.switch > dd > .only > ol {
Expand Down Expand Up @@ -1436,7 +1449,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
<h1>Secure Contexts</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-08-30">30 August 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2016-09-15">15 September 2016</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -1954,10 +1967,10 @@ <h3 class="heading settled" data-level="2.1" id="integration-idl"><span class="s
<span class="kt">Promise</span> &lt;<span class="kt">double</span>> <span class="nv">calculateNotSoSecretResult</span>();

// This operation will not be exposed to a non-secure context.
[<span class="nv">SecureContext</span>] <span class="kt">Promise</span>&lt;<span class="kt">double</span>> <span class="nv">calculateSecretResult</span>();
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#SecureContext">[<span class="nv">SecureContext</span>]</a> <span class="kt">Promise</span>&lt;<span class="kt">double</span>> <span class="nv">calculateSecretResult</span>();

// The same applies here: the operation will not be exposed to a non-secure context.
[<span class="nv">SecureContext</span>] <span class="kt">boolean</span> <span class="nv">getSecretBoolean</span>();
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#SecureContext">[<span class="nv">SecureContext</span>]</a> <span class="kt">boolean</span> <span class="nv">getSecretBoolean</span>();
};

[<span class="nv">SecureContext</span>]
Expand Down Expand Up @@ -2494,6 +2507,13 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<ul>
<li><a href="https://w3c.github.io/webappsec-mixed-content/#a-priori-authenticated-url">a priori authenticated url</a>
</ul>
<li>
<a data-link-type="biblio">[WHATWG-URL]</a> defines the following terms:
<ul>
<li><a href="https://url.spec.whatwg.org/#url">URL</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-origin">origin</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-scheme">scheme</a>
</ul>
<li>
<a data-link-type="biblio">[W3C-PROCESS]</a> defines the following terms:
<ul>
Expand All @@ -2512,13 +2532,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li><a href="https://www.w3.org/TR/workers/#workerglobalscope">WorkerGlobalScope</a>
<li><a href="https://www.w3.org/TR/workers/#the-worker-s-documents">the worker's documents</a>
</ul>
<li>
<a data-link-type="biblio">[WHATWG-URL]</a> defines the following terms:
<ul>
<li><a href="https://url.spec.whatwg.org/#url">URL</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-origin">origin</a>
<li><a href="https://url.spec.whatwg.org/#concept-url-scheme">scheme</a>
</ul>
</ul>
<h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
<h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
Expand Down

0 comments on commit 480483f

Please sign in to comment.