Skip to content

Commit 7c4b8cb

Browse files
committed
Kill anonymous mode since nobody implemented it per specification.
1 parent c4224ac commit 7c4b8cb

File tree

2 files changed

+12
-66
lines changed

2 files changed

+12
-66
lines changed

Overview.html

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,7 @@ <h2 id="interface-xmlhttprequest"><span class="secno">4 </span>Interface <code t
265265
"text"
266266
};
267267

268-
dictionary <dfn id="xmlhttprequestoptions">XMLHttpRequestOptions</dfn> {
269-
boolean anonymous = false;
270-
};
271-
272-
[<a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">Constructor</a>(optional <a href="#xmlhttprequestoptions">XMLHttpRequestOptions</a> <var title="">options</var>)]
268+
[<a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">Constructor</a>]
273269
interface <dfn id="xmlhttprequest">XMLHttpRequest</dfn> : <a href="#xmlhttprequesteventtarget">XMLHttpRequestEventTarget</a> {
274270
// <a href="#event-handlers">event handler</a>
275271
attribute <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler">EventHandler</a> <a href="#handler-xhr-onreadystatechange" title="handler-xhr-onreadystatechange">onreadystatechange</a>;
@@ -316,12 +312,6 @@ <h2 id="interface-xmlhttprequest"><span class="secno">4 </span>Interface <code t
316312

317313
<h3 id="constructors"><span class="secno">4.1 </span>Constructors</h3>
318314

319-
<p>The <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object has an associated
320-
<dfn id="anonymous-flag">anonymous flag</dfn>. If the <a href="#anonymous-flag">anonymous flag</a> is set,
321-
<a href="#user-credentials">user credentials</a> and the
322-
<a href="#source-origin">source origin</a> are not exposed when
323-
<a class="external" href="http://fetch.spec.whatwg.org/#concept-fetch" title="concept-fetch">fetching</a> resources.
324-
325315
<p>When the <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#javascript-global-environment">JavaScript global environment</a>
326316
is a <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a>, the
327317
<code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object has an associated
@@ -330,23 +320,16 @@ <h3 id="constructors"><span class="secno">4.1 </span>Constructors</h3>
330320
<dl class="domintro">
331321
<dt><code><var title="">client</var> = new <a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">XMLHttpRequest</a>()</code>
332322
<dd>Returns a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object.
333-
334-
<dt><code><var title="">client</var> = new <a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">XMLHttpRequest</a>({anonymous:true})</code>
335-
<dd>Returns a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object that has its
336-
<a href="#anonymous-flag">anonymous flag</a> set.
337323
</dl>
338324

339325
<p>The
340-
<dfn id="dom-xmlhttprequest" title="dom-XMLHttpRequest"><code>XMLHttpRequest(<var title="">options</var>)</code></dfn>
326+
<dfn id="dom-xmlhttprequest" title="dom-XMLHttpRequest"><code>XMLHttpRequest()</code></dfn>
341327
constructor must run these steps:
342328

343329
<ol>
344330
<li><p>Let <var title="">xhr</var> be a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code>
345331
object.
346332

347-
<li><p>If <var title="">options</var>'s <code title="">anonymous</code> member is
348-
true, set <var title="">xhr</var>'s <a href="#anonymous-flag">anonymous flag</a>.
349-
350333
<li><p>If the
351334
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
352335
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a>, set <var title="">xhr</var>'s
@@ -554,7 +537,6 @@ <h4 id="the-open()-method"><span class="secno">4.5.1 </span>The <code title="">o
554537
exception if <var title="">async</var> is false, the
555538
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
556539
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a>, and either the
557-
<a href="#anonymous-flag">anonymous flag</a> is set, the
558540
<code title="dom-XMLHttpRequest-timeout"><a href="#dom-xmlhttprequest-timeout">timeout</a></code> attribute is not
559541
zero, the
560542
<code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code>
@@ -584,8 +566,7 @@ <h4 id="the-open()-method"><span class="secno">4.5.1 </span>The <code title="">o
584566
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#document-base-url">document base URL</a> of
585567
<a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a>.
586568

587-
<li><p>Set <a href="#source-origin">source origin</a> to a globally unique identifier if the
588-
<a href="#anonymous-flag">anonymous flag</a> is set, and the <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>
569+
<li><p>Set <a href="#source-origin">source origin</a> to the <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>
589570
of <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a> otherwise.
590571

591572
<li><p>Set <a href="#referrer-source">referrer source</a> to
@@ -660,7 +641,6 @@ <h4 id="the-open()-method"><span class="secno">4.5.1 </span>The <code title="">o
660641
<li><p>If <var>async</var> is false, the
661642
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
662643
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a>, and either the
663-
<a href="#anonymous-flag">anonymous flag</a> is set, the
664644
<code title="dom-XMLHttpRequest-timeout"><a href="#dom-xmlhttprequest-timeout">timeout</a></code> attribute value is not zero, the
665645
<code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code> attribute value is
666646
true, or the <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> attribute
@@ -905,8 +885,7 @@ <h4 id="the-withcredentials-attribute"><span class="secno">4.5.4 </span>The <cod
905885
"<code class="external"><a href="http://dom.spec.whatwg.org/#invalidaccesserror">InvalidAccessError</a></code>" exception if
906886
either the <a href="#synchronous-flag">synchronous flag</a> is set and the
907887
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
908-
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a> or if the
909-
<a href="#anonymous-flag">anonymous flag</a> is set.
888+
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a>.
910889
</dd>
911890
</dl>
912891

@@ -928,10 +907,6 @@ <h4 id="the-withcredentials-attribute"><span class="secno">4.5.4 </span>The <cod
928907
<a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an
929908
"<code class="external"><a href="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code>" exception.
930909

931-
<li><p>If the <a href="#anonymous-flag">anonymous flag</a> is set,
932-
<a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an
933-
"<code class="external"><a href="http://dom.spec.whatwg.org/#invalidaccesserror">InvalidAccessError</a></code>" exception.
934-
935910
<li><p>If the
936911
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
937912
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#document-environment">document environment</a> and the
@@ -1155,10 +1130,8 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s
11551130
<dt><a class="external" href="http://fetch.spec.whatwg.org/#force-preflight-flag">force preflight flag</a>
11561131
<dd>Set if the <a href="#upload-events-flag">upload events flag</a> is set.
11571132
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-omit-credentials-mode" title="concept-request-omit-credentials-mode">omit credentials mode</a>
1158-
<dd>If the <a href="#anonymous-flag">anonymous flag</a> is set, <i title="">always</i>, if the
1159-
<a href="#anonymous-flag">anonymous flag</a> is unset and the
1160-
<code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code> attribute value
1161-
is true, <i title="">never</i>, and <i title="">CORS</i> otherwise.
1133+
<dd>If the <code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code>
1134+
attribute value is true, <i title="">never</i>, and <i title="">CORS</i> otherwise.
11621135
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-use-url-credentials-flag" title="concept-request-use-url-credentials-flag">use URL credentials flag</a>
11631136
<dd>Set if either <a href="#request-url">request URL</a>'s
11641137
<a class="external" href="http://url.spec.whatwg.org/#concept-url-username" title="concept-url-username">username</a>

Overview.src.html

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,7 @@ <h2>Interface <code title>XMLHttpRequest</code></h2>
220220
"text"
221221
};
222222

223-
dictionary <dfn>XMLHttpRequestOptions</dfn> {
224-
boolean anonymous = false;
225-
};
226-
227-
[<span title="dom-XMLHttpRequest">Constructor</span>(optional <span>XMLHttpRequestOptions</span> <var title>options</var>)]
223+
[<span title="dom-XMLHttpRequest">Constructor</span>]
228224
interface <dfn id="xmlhttprequest">XMLHttpRequest</dfn> : <span>XMLHttpRequestEventTarget</span> {
229225
// <a href="#event-handlers">event handler</a>
230226
attribute <span data-anolis-spec=html>EventHandler</span> <span title="handler-xhr-onreadystatechange">onreadystatechange</span>;
@@ -271,12 +267,6 @@ <h2>Interface <code title>XMLHttpRequest</code></h2>
271267

272268
<h3 id="constructors">Constructors</h3>
273269

274-
<p>The <code>XMLHttpRequest</code> object has an associated
275-
<dfn>anonymous flag</dfn>. If the <span>anonymous flag</span> is set,
276-
<span>user credentials</span> and the
277-
<span>source origin</span> are not exposed when
278-
<span data-anolis-spec=fetch title=concept-fetch>fetching</span> resources.
279-
280270
<p>When the <span data-anolis-spec=html>JavaScript global environment</span>
281271
is a <span data-anolis-spec=html>document environment</span>, the
282272
<code>XMLHttpRequest</code> object has an associated
@@ -285,23 +275,16 @@ <h3 id="constructors">Constructors</h3>
285275
<dl class=domintro>
286276
<dt><code><var title>client</var> = new <span title=dom-XMLHttpRequest>XMLHttpRequest</span>()</code>
287277
<dd>Returns a new <code>XMLHttpRequest</code> object.
288-
289-
<dt><code><var title>client</var> = new <span title=dom-XMLHttpRequest>XMLHttpRequest</span>({anonymous:true})</code>
290-
<dd>Returns a new <code>XMLHttpRequest</code> object that has its
291-
<span>anonymous flag</span> set.
292278
</dl>
293279

294280
<p>The
295-
<dfn title="dom-XMLHttpRequest"><code>XMLHttpRequest(<var title>options</var>)</code></dfn>
281+
<dfn title="dom-XMLHttpRequest"><code>XMLHttpRequest()</code></dfn>
296282
constructor must run these steps:
297283

298284
<ol>
299285
<li><p>Let <var title>xhr</var> be a new <code>XMLHttpRequest</code>
300286
object.
301287

302-
<li><p>If <var title>options</var>'s <code title>anonymous</code> member is
303-
true, set <var title>xhr</var>'s <span>anonymous flag</span>.
304-
305288
<li><p>If the
306289
<span data-anolis-spec=html>JavaScript global environment</span> is a
307290
<span data-anolis-spec=html>document environment</span>, set <var title>xhr</var>'s
@@ -509,7 +492,6 @@ <h4>The <code title>open()</code> method</h4>
509492
exception if <var title>async</var> is false, the
510493
<span data-anolis-spec=html>JavaScript global environment</span> is a
511494
<span data-anolis-spec=html>document environment</span>, and either the
512-
<span>anonymous flag</span> is set, the
513495
<code title=dom-XMLHttpRequest-timeout>timeout</code> attribute is not
514496
zero, the
515497
<code title=dom-XMLHttpRequest-withCredentials>withCredentials</code>
@@ -539,8 +521,7 @@ <h4>The <code title>open()</code> method</h4>
539521
<span data-anolis-spec=html>document base URL</span> of
540522
<span title=concept-XMLHttpRequest-document>document</span>.
541523

542-
<li><p>Set <span>source origin</span> to a globally unique identifier if the
543-
<span>anonymous flag</span> is set, and the <span data-anolis-spec=html>origin</span>
524+
<li><p>Set <span>source origin</span> to the <span data-anolis-spec=html>origin</span>
544525
of <span title=concept-XMLHttpRequest-document>document</span> otherwise.
545526

546527
<li><p>Set <span>referrer source</span> to
@@ -615,7 +596,6 @@ <h4>The <code title>open()</code> method</h4>
615596
<li><p>If <var>async</var> is false, the
616597
<span data-anolis-spec=html>JavaScript global environment</span> is a
617598
<span data-anolis-spec=html>document environment</span>, and either the
618-
<span>anonymous flag</span> is set, the
619599
<code title=dom-XMLHttpRequest-timeout>timeout</code> attribute value is not zero, the
620600
<code title=dom-XMLHttpRequest-withCredentials>withCredentials</code> attribute value is
621601
true, or the <code title=dom-XMLHttpRequest-responseType>responseType</code> attribute
@@ -860,8 +840,7 @@ <h4>The <code title>withCredentials</code> attribute</h4>
860840
"<code data-anolis-spec=dom>InvalidAccessError</code>" exception if
861841
either the <span>synchronous flag</span> is set and the
862842
<span data-anolis-spec=html>JavaScript global environment</span> is a
863-
<span data-anolis-spec=html>document environment</span> or if the
864-
<span>anonymous flag</span> is set.
843+
<span data-anolis-spec=html>document environment</span>.
865844
</dd>
866845
</dl>
867846

@@ -883,10 +862,6 @@ <h4>The <code title>withCredentials</code> attribute</h4>
883862
<span data-anolis-spec=dom title=concept-throw>throw</span> an
884863
"<code data-anolis-spec=dom>InvalidStateError</code>" exception.
885864

886-
<li><p>If the <span>anonymous flag</span> is set,
887-
<span data-anolis-spec=dom title=concept-throw>throw</span> an
888-
"<code data-anolis-spec=dom>InvalidAccessError</code>" exception.
889-
890865
<li><p>If the
891866
<span data-anolis-spec=html>JavaScript global environment</span> is a
892867
<span data-anolis-spec=html>document environment</span> and the
@@ -1110,10 +1085,8 @@ <h4>The <code title>send()</code> method</h4>
11101085
<dt><span data-anolis-spec=fetch>force preflight flag</span>
11111086
<dd>Set if the <span>upload events flag</span> is set.
11121087
<dt><span data-anolis-spec=fetch title=concept-request-omit-credentials-mode>omit credentials mode</span>
1113-
<dd>If the <span>anonymous flag</span> is set, <i title>always</i>, if the
1114-
<span>anonymous flag</span> is unset and the
1115-
<code title=dom-XMLHttpRequest-withCredentials>withCredentials</code> attribute value
1116-
is true, <i title>never</i>, and <i title>CORS</i> otherwise.
1088+
<dd>If the <code title=dom-XMLHttpRequest-withCredentials>withCredentials</code>
1089+
attribute value is true, <i title>never</i>, and <i title>CORS</i> otherwise.
11171090
<dt><span data-anolis-spec=fetch title=concept-request-use-url-credentials-flag>use URL credentials flag</span>
11181091
<dd>Set if either <span>request URL</span>'s
11191092
<span data-anolis-spec=url title=concept-url-username>username</span>

0 commit comments

Comments
 (0)