Skip to content

Commit e385c51

Browse files
committed
CREDENTIAL: Clean up non-normative opaque FormData text.
1 parent 130c038 commit e385c51

File tree

2 files changed

+7
-75
lines changed

2 files changed

+7
-75
lines changed

specs/credentialmanagement/index.html

Lines changed: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,48 +1491,9 @@ <h3 class="heading settled" data-level="3.3" id="opaque-formdata"><span class="s
14911491

14921492

14931493
<li>
1494-
Whenever the user agent would <a data-link-type="dfn" href="https://xhr.spec.whatwg.org/#concept-fetchbodyinit-extract">extract a byte stream and
1495-
<code>Content-Type</code></a> from an opaque <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code> object
1496-
<var>formdata</var>, first the following steps:
1497-
1498-
1499-
<ol>
1500-
1501-
<li>
1502-
If the extraction algorithm is not being executed in the context of
1503-
either <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-xmlhttprequest">XMLHttpRequest</a></code>'s <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-send">send()</a></code> method, or
1504-
Fetch’s <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#dom-request">Request()</a></code> or <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#dom-response">Response()</a></code> constructors, then:
1505-
1506-
1507-
<ol>
1508-
1509-
<li>
1510-
Abort the extraction algorithm and return the result of executing
1511-
the <a data-link-type="dfn" href="https://xhr.spec.whatwg.org/#concept-fetchbodyinit-extract">extract a byte stream and
1512-
<code>Content-Type</code></a> algorithm on a new (empty)
1513-
<code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code> object.
1514-
1515-
1516-
1517-
</ol>
1518-
1519-
1520-
1521-
1522-
</ol>
1523-
1524-
1525-
1526-
1527-
<li>
1528-
TODO.
1529-
1530-
1531-
<p class="issue" id="issue-6636b845"><a class="self-link" href="#issue-6636b845"></a> Determine the right spec text to impart the following: When a request
1532-
is handed off to Fetch, mark it as opaque if its body is populated from an
1533-
opaque <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code> object, or if it is the result of a form submission with
1534-
opaque contents.</p>
1535-
1494+
The opaqueness of a <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code> object taints <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#request">Request</a></code> objects
1495+
created from them. The <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#body">Body</a></code> accessor methods will reject with a
1496+
<code>TypeError</code>.
15361497

15371498

15381499

@@ -3411,8 +3372,8 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
34113372
<li><a data-link-type="biblio" href="#biblio-fetch">[FETCH]</a> defines the following terms:
34123373
<ul>
34133374
<li><a href="https://fetch.spec.whatwg.org/#body">Body</a>
3375+
<li><a href="https://fetch.spec.whatwg.org/#request">Request</a>
34143376
<li><a href="https://fetch.spec.whatwg.org/#dom-request">Request()</a>
3415-
<li><a href="https://fetch.spec.whatwg.org/#dom-response">Response()</a>
34163377
<li><a href="https://fetch.spec.whatwg.org/#dom-Body-arrayBuffer">arrayBuffer()</a>
34173378
<li><a href="https://fetch.spec.whatwg.org/#dom-Body-blob">blob()</a>
34183379
<li><a href="https://fetch.spec.whatwg.org/#concept-Body-consume-body">consume body</a>
@@ -3606,10 +3567,6 @@ <h2 class="no-num heading settled" id="issues-index"><span class="content">Issue
36063567
<div class="issue"> We should support explicit sign-up via
36073568
<code class="idl"><a data-link-type="idl" href="#passwordcredential">PasswordCredential</a></code>s with generated passwords. Perhaps something similar to
36083569
iOS8’s <code>SecCreateSharedWebCredentialPassword</code>. <a href="https://github.com/w3c/webappsec/issues/250">&lt;https://github.com/w3c/webappsec/issues/250></a><a href="#issue-74489b21"></a></div>
3609-
<div class="issue"> Determine the right spec text to impart the following: When a request
3610-
is handed off to Fetch, mark it as opaque if its body is populated from an
3611-
opaque <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code> object, or if it is the result of a form submission with
3612-
opaque contents.<a href="#issue-6636b845"></a></div>
36133570
<div class="issue"> Monkey-patching! Hooray! Talk with Anne, et al.<a href="#issue-020f94b2"></a></div>
36143571
<div class="issue"> Currently, we’re not protecting requests with opaque bodies from
36153572
Service Worker interception. Should we?<a href="#issue-be0db764"></a></div>

specs/credentialmanagement/index.src.html

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -931,34 +931,9 @@ <h3 id="opaque-formdata">Opaque <code>FormData</code> objects</h3>
931931
{{FormData/getAll()}} method, it MUST return the empty sequence.
932932
</li>
933933
<li>
934-
Whenever the user agent would <a lt="extract">extract a byte stream and
935-
<code>Content-Type</code></a> from an opaque {{FormData}} object
936-
<var>formdata</var>, first the following steps:
937-
938-
<ol>
939-
<li>
940-
If the extraction algorithm is not being executed in the context of
941-
either {{XMLHttpRequest}}'s {{XMLHttpRequest/send()}} method, or
942-
Fetch's {{Request()}} or {{Response()}} constructors, then:
943-
944-
<ol>
945-
<li>
946-
Abort the extraction algorithm and return the result of executing
947-
the <a lt="extract">extract a byte stream and
948-
<code>Content-Type</code></a> algorithm on a new (empty)
949-
{{FormData}} object.
950-
</li>
951-
</ol>
952-
</li>
953-
</ol>
954-
</li>
955-
<li>
956-
TODO.
957-
958-
ISSUE: Determine the right spec text to impart the following: When a request
959-
is handed off to Fetch, mark it as opaque if its body is populated from an
960-
opaque {{FormData}} object, or if it is the result of a form submission with
961-
opaque contents.
934+
The opaqueness of a {{FormData}} object taints {{Request}} objects
935+
created from them. The {{Body}} accessor methods will reject with a
936+
<code>TypeError</code>.
962937
</li>
963938
</ol>
964939

0 commit comments

Comments
 (0)