Add hash type and DOMException

SHA: f6bf35350c
Reason: push, by RupertBenWiser

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Rupert Ben Wiser 2023-07-17 10:56:33 +00:00
parent af62242cb5
commit 1748448846
1 changed files with 22 additions and 8 deletions

View File

@ -1488,8 +1488,8 @@ Possible extra rowspan handling
}
}
</style>
<meta content="Bikeshed version 5edf5e459, updated Thu Jun 22 11:28:01 2023 -0700" name="generator">
<meta content="315ecaa79f1975b7dcf6de12b1e4f1bc602b2aea" name="document-revision">
<meta content="Bikeshed version b06c00b8e, updated Tue Jul 11 13:41:16 2023 -0700" name="generator">
<meta content="f6bf35350c59e856deafdac65569b71a3413155b" name="document-revision">
<style>/* Boilerplate: style-autolinks */
.css.css, .property.property, .descriptor.descriptor {
color: var(--a-normal-text);
@ -2151,7 +2151,7 @@ var.selected6 { background-color: #FFBCF2; box-shadow: 0 0 0 2px #FFBCF2; }
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Web Environment Integrity</h1>
<h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span class="content">A Collection of Interesting Ideas, <time class="dt-updated" datetime="2023-07-04">4 July 2023</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span class="content">A Collection of Interesting Ideas, <time class="dt-updated" datetime="2023-07-17">17 July 2023</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>Issue Tracking:
@ -2163,7 +2163,7 @@ var.selected6 { background-color: #FFBCF2; box-shadow: 0 0 0 2px #FFBCF2; }
<div data-fill-with="warning"></div>
<p class="copyright" data-fill-with="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" height="15" src="https://licensebuttons.net/p/zero/1.0/80x15.png" width="80"></a> To the extent possible under law, the editors have waived all copyright
and related or neighboring rights to this work.
In addition, as of 4 July 2023,
In addition, as of 17 July 2023,
the editors have made this specification available under the <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
Parts of this work may be from another specification document. If so, those parts are instead covered by the license of that specification document. </p>
@ -2322,10 +2322,12 @@ to the response from <a data-link-type="dfn" href="#attester-attester" id="ref-f
<p>Run the following steps <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel" id="ref-for-in-parallel">in parallel</a>:</p>
<ol>
<li data-md>
<p>Set <var>attesterVerdict</var> to a new <a data-link-type="dfn" href="#attester-verdict-attester-verdict" id="ref-for-attester-verdict-attester-verdict⑦">attester verdict</a> from the <var>attesterConnection</var> using the <var>contentBinding</var>. If this fails then:</p>
<p>Let <var>hashedCB</var> be the digest <a data-link-type="biblio" href="#biblio-sha-256" title="Secure Hash Standard (SHS) (FIPS PUB 180-4)">[SHA-256]</a>(<var>contentBinding</var> + ";" + <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-origin" id="ref-for-concept-url-origin">origin</a>)</p>
<li data-md>
<p>Set <var>attesterVerdict</var> to a new <a data-link-type="dfn" href="#attester-verdict-attester-verdict" id="ref-for-attester-verdict-attester-verdict⑦">attester verdict</a> from the <var>attesterConnection</var> using the <var>hashedCB</var>. If this fails then:</p>
<ol>
<li data-md>
<p><a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#reject" id="ref-for-reject">Reject</a> <var>promise</var> with a <i>TODO</i> <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-exception" id="ref-for-dfn-exception">Exception</a></p>
<p><a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#reject" id="ref-for-reject">Reject</a> <var>promise</var> with a "<code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#unknownerror" id="ref-for-unknownerror">UnknownError</a></code>" <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-DOMException" id="ref-for-idl-DOMException">DOMException</a></code></p>
<li data-md>
<p>Abort these steps</p>
</ol>
@ -2548,16 +2550,22 @@ website is not spoofed.</p>
<ul>
<li><span class="dfn-paneled" id="6d19ac93">user agent</span>
</ul>
<li>
<a data-link-type="biblio">[URL]</a> defines the following terms:
<ul>
<li><span class="dfn-paneled" id="959ad97b">origin</span>
</ul>
<li>
<a data-link-type="biblio">[WEBIDL]</a> defines the following terms:
<ul>
<li><span class="dfn-paneled" id="2f8afbfe">ArrayBuffer</span>
<li><span class="dfn-paneled" id="dca2de17">DOMException</span>
<li><span class="dfn-paneled" id="8855a9aa">DOMString</span>
<li><span class="dfn-paneled" id="889e932f">Exposed</span>
<li><span class="dfn-paneled" id="bdbd19d1">Promise</span>
<li><span class="dfn-paneled" id="b75bb3bd">SecureContext</span>
<li><span class="dfn-paneled" id="81dd847b">UnknownError</span>
<li><span class="dfn-paneled" id="dacde8b5">a new promise</span>
<li><span class="dfn-paneled" id="cd787c3f">exception</span>
<li><span class="dfn-paneled" id="efd1ec5d">object</span>
<li><span class="dfn-paneled" id="b262501e">reject</span>
<li><span class="dfn-paneled" id="3b90bdcd">resolve</span>
@ -2572,6 +2580,8 @@ website is not spoofed.</p>
<dd>Anne van Kesteren; Domenic Denicola. <a href="https://infra.spec.whatwg.org/"><cite>Infra Standard</cite></a>. Living Standard. URL: <a href="https://infra.spec.whatwg.org/">https://infra.spec.whatwg.org/</a>
<dt id="biblio-rfc2119">[RFC2119]
<dd>S. Bradner. <a href="https://datatracker.ietf.org/doc/html/rfc2119"><cite>Key words for use in RFCs to Indicate Requirement Levels</cite></a>. March 1997. Best Current Practice. URL: <a href="https://datatracker.ietf.org/doc/html/rfc2119">https://datatracker.ietf.org/doc/html/rfc2119</a>
<dt id="biblio-url">[URL]
<dd>Anne van Kesteren. <a href="https://url.spec.whatwg.org/"><cite>URL Standard</cite></a>. Living Standard. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a>
<dt id="biblio-webidl">[WEBIDL]
<dd>Edgar Chen; Timothy Gu. <a href="https://webidl.spec.whatwg.org/"><cite>Web IDL Standard</cite></a>. Living Standard. URL: <a href="https://webidl.spec.whatwg.org/">https://webidl.spec.whatwg.org/</a>
</dl>
@ -2581,6 +2591,8 @@ website is not spoofed.</p>
<dd>C. Bormann; P. Hoffman. <a href="https://www.rfc-editor.org/rfc/rfc8949"><cite>Concise Binary Object Representation (CBOR)</cite></a>. December 2020. Internet Standard. URL: <a href="https://www.rfc-editor.org/rfc/rfc8949">https://www.rfc-editor.org/rfc/rfc8949</a>
<dt id="biblio-rfc9053">[RFC9053]
<dd>J. Schaad. <a href="https://www.rfc-editor.org/rfc/rfc9053"><cite>CBOR Object Signing and Encryption (COSE): Initial Algorithms</cite></a>. August 2022. Informational. URL: <a href="https://www.rfc-editor.org/rfc/rfc9053">https://www.rfc-editor.org/rfc/rfc9053</a>
<dt id="biblio-sha-256">[SHA-256]
<dd>National Institute of Standards and Technology. <a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf"><cite>Secure Hash Standard (SHS) (FIPS PUB 180-4)</cite></a>. August 2015. URL: <a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf">https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf</a>
</dl>
<h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">IDL Index</span><a class="self-link" href="#idl-index"></a></h2>
<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#Exposed"><c- g>Exposed</c-></a>=<c- n>Window</c->]
@ -2908,13 +2920,15 @@ window.dfnpanelData['be0c27b2'] = {"dfnID": "be0c27b2", "url": "https://html.spe
window.dfnpanelData['a72449dd'] = {"dfnID": "a72449dd", "url": "https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel", "dfnText": "in parallel", "refSections": [{"refs": [{"id": "ref-for-in-parallel"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['65181da8'] = {"dfnID": "65181da8", "url": "https://html.spec.whatwg.org/multipage/webappapis.html#secure-context", "dfnText": "secure context", "refSections": [{"refs": [{"id": "ref-for-secure-context"}], "title": "6.1.1. Secure context only"}], "external": true};
window.dfnpanelData['6d19ac93'] = {"dfnID": "6d19ac93", "url": "https://infra.spec.whatwg.org/#user-agent", "dfnText": "user agent", "refSections": [{"refs": [{"id": "ref-for-user-agent"}], "title": "1. Introduction"}, {"refs": [{"id": "ref-for-user-agent\u2460"}, {"id": "ref-for-user-agent\u2461"}], "title": "1.1. Motivations"}, {"refs": [{"id": "ref-for-user-agent\u2462"}], "title": "3. Attesters"}, {"refs": [{"id": "ref-for-user-agent\u2463"}, {"id": "ref-for-user-agent\u2464"}], "title": "4.1. Attesters"}, {"refs": [{"id": "ref-for-user-agent\u2465"}, {"id": "ref-for-user-agent\u2466"}], "title": "4.1.1. Attester Connection"}, {"refs": [{"id": "ref-for-user-agent\u2467"}], "title": "4.1.2. Attester Verdict"}, {"refs": [{"id": "ref-for-user-agent\u2468"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['959ad97b'] = {"dfnID": "959ad97b", "url": "https://url.spec.whatwg.org/#concept-url-origin", "dfnText": "origin", "refSections": [{"refs": [{"id": "ref-for-concept-url-origin"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['2f8afbfe'] = {"dfnID": "2f8afbfe", "url": "https://webidl.spec.whatwg.org/#idl-ArrayBuffer", "dfnText": "ArrayBuffer", "refSections": [{"refs": [{"id": "ref-for-idl-ArrayBuffer"}], "title": "4.1.2. Attester Verdict"}, {"refs": [{"id": "ref-for-idl-ArrayBuffer\u2460"}, {"id": "ref-for-idl-ArrayBuffer\u2461"}], "title": "5.2. EnvironmentIntegrity"}], "external": true};
window.dfnpanelData['dca2de17'] = {"dfnID": "dca2de17", "url": "https://webidl.spec.whatwg.org/#idl-DOMException", "dfnText": "DOMException", "refSections": [{"refs": [{"id": "ref-for-idl-DOMException"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['8855a9aa'] = {"dfnID": "8855a9aa", "url": "https://webidl.spec.whatwg.org/#idl-DOMString", "dfnText": "DOMString", "refSections": [{"refs": [{"id": "ref-for-idl-DOMString"}], "title": "5.1. Extensions to Navigator"}, {"refs": [{"id": "ref-for-idl-DOMString\u2460"}], "title": "5.2. EnvironmentIntegrity"}], "external": true};
window.dfnpanelData['889e932f'] = {"dfnID": "889e932f", "url": "https://webidl.spec.whatwg.org/#Exposed", "dfnText": "Exposed", "refSections": [{"refs": [{"id": "ref-for-Exposed"}], "title": "5.1. Extensions to Navigator"}, {"refs": [{"id": "ref-for-Exposed\u2460"}], "title": "5.2. EnvironmentIntegrity"}], "external": true};
window.dfnpanelData['bdbd19d1'] = {"dfnID": "bdbd19d1", "url": "https://webidl.spec.whatwg.org/#idl-promise", "dfnText": "Promise", "refSections": [{"refs": [{"id": "ref-for-idl-promise"}], "title": "5.1. Extensions to Navigator"}], "external": true};
window.dfnpanelData['b75bb3bd'] = {"dfnID": "b75bb3bd", "url": "https://webidl.spec.whatwg.org/#SecureContext", "dfnText": "SecureContext", "refSections": [{"refs": [{"id": "ref-for-SecureContext"}], "title": "5.1. Extensions to Navigator"}], "external": true};
window.dfnpanelData['81dd847b'] = {"dfnID": "81dd847b", "url": "https://webidl.spec.whatwg.org/#unknownerror", "dfnText": "UnknownError", "refSections": [{"refs": [{"id": "ref-for-unknownerror"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['dacde8b5'] = {"dfnID": "dacde8b5", "url": "https://webidl.spec.whatwg.org/#a-new-promise", "dfnText": "a new promise", "refSections": [{"refs": [{"id": "ref-for-a-new-promise"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['cd787c3f'] = {"dfnID": "cd787c3f", "url": "https://webidl.spec.whatwg.org/#dfn-exception", "dfnText": "exception", "refSections": [{"refs": [{"id": "ref-for-dfn-exception"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['efd1ec5d'] = {"dfnID": "efd1ec5d", "url": "https://webidl.spec.whatwg.org/#idl-object", "dfnText": "object", "refSections": [{"refs": [{"id": "ref-for-idl-object"}], "title": "5.2. EnvironmentIntegrity"}], "external": true};
window.dfnpanelData['b262501e'] = {"dfnID": "b262501e", "url": "https://webidl.spec.whatwg.org/#reject", "dfnText": "reject", "refSections": [{"refs": [{"id": "ref-for-reject"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};
window.dfnpanelData['3b90bdcd'] = {"dfnID": "3b90bdcd", "url": "https://webidl.spec.whatwg.org/#resolve", "dfnText": "resolve", "refSections": [{"refs": [{"id": "ref-for-resolve"}], "title": "5.1.1. getEnvironmentIntegrity()"}], "external": true};