[xhr] Remove anonymous flag and dictionary XMLHttpRequestOptions
authorJungkee Song <jungkee.song@samsung.com>
Fri, 22 Nov 2013 17:39:47 +0900
changeset 155 3c6ed2f44efe
parent 154 af78eda2c6c3
child 156 c41b251302e4
[xhr] Remove anonymous flag and dictionary XMLHttpRequestOptions
Overview.html
Overview.src.html
data/xrefs/dom/xhr.json
--- a/Overview.html	Fri Nov 22 17:27:30 2013 +0900
+++ b/Overview.html	Fri Nov 22 17:39:47 2013 +0900
@@ -178,7 +178,7 @@
  <li><a href="#interface-xmlhttprequest"><span class="secno">4 </span>Interface <code title="">XMLHttpRequest</code></a>
   <ol class="toc">
    <li><a href="#task-sources"><span class="secno">4.1 </span>Task sources</a></li>
-   <li><a href="#constructors"><span class="secno">4.2 </span>Constructors</a></li>
+   <li><a href="#constructor"><span class="secno">4.2 </span>Constructor</a></li>
    <li><a href="#garbage-collection"><span class="secno">4.3 </span>Garbage collection</a></li>
    <li><a href="#event-handlers"><span class="secno">4.4 </span>Event handlers</a></li>
    <li><a href="#states"><span class="secno">4.5 </span>States</a></li>
@@ -446,11 +446,7 @@
   "text"
 };
 
-dictionary <dfn id="xmlhttprequestoptions">XMLHttpRequestOptions</dfn> {
-  boolean anonymous = false;
-};
-
-[<a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">Constructor</a>(optional <a href="#xmlhttprequestoptions">XMLHttpRequestOptions</a> <var title="">options</var>)]
+[<a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">Constructor</a>]
 interface <dfn id="xmlhttprequest">XMLHttpRequest</dfn> : <a href="#xmlhttprequesteventtarget">XMLHttpRequestEventTarget</a> {
   // <a href="#event-handlers">event handler</a>
   attribute <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#eventhandler">EventHandler</a> <a href="#handler-xhr-onreadystatechange" title="handler-xhr-onreadystatechange">onreadystatechange</a>;
@@ -503,13 +499,7 @@
 <dfn id="xmlhttprequest-task-source"><code>XMLHttpRequest</code> task source</dfn>.
 
 
-  <h3 id="constructors"><span class="secno">4.2 </span>Constructors</h3>
-
-  <p>The <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object has an associated
-  <dfn id="anonymous-flag">anonymous flag</dfn>. If the <a href="#anonymous-flag">anonymous flag</a> is set,
-  <a href="#user-credentials">user credentials</a> and the
-  <a href="#source-origin">source origin</a> are not exposed when
-  <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#fetch" title="fetch">fetching</a> resources.
+  <h3 id="constructor"><span class="secno">4.2 </span>Constructor</h3>
 
   <p>The <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object has an associated
   <dfn id="concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</dfn>.
@@ -518,22 +508,16 @@
     <dt><code><var title="">client</var> = new <a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">XMLHttpRequest</a>()</code>
     <dd>Returns a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object.
 
-    <dt><code><var title="">client</var> = new <a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">XMLHttpRequest</a>({anonymous:true})</code>
-    <dd>Returns a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object that has its
-    <a href="#anonymous-flag">anonymous flag</a> set.
   </dl>
 
   <p>The
-  <dfn id="dom-xmlhttprequest" title="dom-XMLHttpRequest"><code>XMLHttpRequest(<var title="">options</var>)</code></dfn>
+  <dfn id="dom-xmlhttprequest" title="dom-XMLHttpRequest"><code>XMLHttpRequest()</code></dfn>
   constructor must run these steps:
 
   <ol>
     <li><p>Let <var title="">xhr</var> be a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code>
     object.
 
-    <li><p>If <var title="">options</var>'s <code title="">anonymous</code> member is
-    true, set <var title="">xhr</var>'s <a href="#anonymous-flag">anonymous flag</a>.
-
     <li><p>Set <var title="">xhr</var>'s
     <a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a> to the
     <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#relevant-settings-object-for-a-global-object" title="relevant settings object for a global object">relevant settings object</a>
@@ -752,7 +736,6 @@
     exception if <var title="">async</var> is false, the
     <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
     <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>, and either the
-    <a href="#anonymous-flag">anonymous flag</a> is set, the
     <code title="dom-XMLHttpRequest-timeout"><a href="#dom-xmlhttprequest-timeout">timeout</a></code> attribute is not
     zero, the
     <code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code>
@@ -847,7 +830,6 @@
  <li><p>If <var>async</var> is false, the
  <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
  <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>, and either the
- <a href="#anonymous-flag">anonymous flag</a> is set, the
  <code title="dom-XMLHttpRequest-timeout"><a href="#dom-xmlhttprequest-timeout">timeout</a></code> attribute value is not zero, the
  <code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code> attribute value is
  true, or the <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> attribute
@@ -1080,10 +1062,9 @@
     the <a href="#send-flag"><code>send()</code> flag</a> is set.</p>
     <p>When set: throws an
     "<code class="external"><a href="http://dev.w3.org/2006/webapi/DOM4Core/#invalidaccesserror">InvalidAccessError</a></code>" exception if
-    either the <a href="#synchronous-flag">synchronous flag</a> is set and the
+    the <a href="#synchronous-flag">synchronous flag</a> is set and the
     <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
-    <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a> or if the
-    <a href="#anonymous-flag">anonymous flag</a> is set.</p>
+    <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>.</p>
    </dd>
   </dl>
 
@@ -1106,9 +1087,6 @@
    <a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-throw" title="concept-throw">throw</a> an
    "<code class="external"><a href="http://dev.w3.org/2006/webapi/DOM4Core/#invalidstateerror">InvalidStateError</a></code>" exception.
 
-   <li><p>If the <a href="#anonymous-flag">anonymous flag</a> is set,
-   <a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-throw" title="concept-throw">throw</a> an
-   "<code class="external"><a href="http://dev.w3.org/2006/webapi/DOM4Core/#invalidaccesserror">InvalidAccessError</a></code>" exception.
 
    <li><p>If the
    <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
@@ -1388,10 +1366,8 @@
        <dd>The <a href="#source-origin">source origin</a>.</dd>
 
        <dt>referrer source
-       <dd>If the <a href="#anonymous-flag">anonymous flag</a> is set, the
-       <a class="external" href="http://url.spec.whatwg.org/#url">URL</a>
-       "<code title="">about:blank</code>", and the
-       <a href="#referrer-source">referrer source</a> otherwise.
+       <dd>The
+       <a href="#referrer-source">referrer source</a>.
 
        <dt>omit credentials flag</dt>
        <dd>Set if
--- a/Overview.src.html	Fri Nov 22 17:27:30 2013 +0900
+++ b/Overview.src.html	Fri Nov 22 17:39:47 2013 +0900
@@ -455,11 +455,7 @@
   "text"
 };
 
-dictionary <dfn>XMLHttpRequestOptions</dfn> {
-  boolean anonymous = false;
-};
-
-[<span title="dom-XMLHttpRequest">Constructor</span>(optional <span>XMLHttpRequestOptions</span> <var title>options</var>)]
+[<span title="dom-XMLHttpRequest">Constructor</span>]
 interface <dfn id="xmlhttprequest">XMLHttpRequest</dfn> : <span>XMLHttpRequestEventTarget</span> {
   // <a href="#event-handlers">event handler</a>
   attribute <span data-anolis-spec=html>EventHandler</span> <span title="handler-xhr-onreadystatechange">onreadystatechange</span>;
@@ -512,13 +508,7 @@
 <dfn><code>XMLHttpRequest</code> task source</dfn>.
 
 
-  <h3 id="constructors">Constructors</h3>
-
-  <p>The <code>XMLHttpRequest</code> object has an associated
-  <dfn>anonymous flag</dfn>. If the <span>anonymous flag</span> is set,
-  <span>user credentials</span> and the
-  <span>source origin</span> are not exposed when
-  <span data-anolis-spec=html title=fetch>fetching</span> resources.
+  <h3 id="constructor">Constructor</h3>
 
   <p>The <code>XMLHttpRequest</code> object has an associated
   <dfn title=concept-XMLHttpRequest-settings-object>settings object</dfn>.
@@ -527,22 +517,16 @@
     <dt><code><var title>client</var> = new <span title=dom-XMLHttpRequest>XMLHttpRequest</span>()</code>
     <dd>Returns a new <code>XMLHttpRequest</code> object.
 
-    <dt><code><var title>client</var> = new <span title=dom-XMLHttpRequest>XMLHttpRequest</span>({anonymous:true})</code>
-    <dd>Returns a new <code>XMLHttpRequest</code> object that has its
-    <span>anonymous flag</span> set.
   </dl>
 
   <p>The
-  <dfn title="dom-XMLHttpRequest"><code>XMLHttpRequest(<var title>options</var>)</code></dfn>
+  <dfn title="dom-XMLHttpRequest"><code>XMLHttpRequest()</code></dfn>
   constructor must run these steps:
 
   <ol>
     <li><p>Let <var title>xhr</var> be a new <code>XMLHttpRequest</code>
     object.
 
-    <li><p>If <var title>options</var>'s <code title>anonymous</code> member is
-    true, set <var title>xhr</var>'s <span>anonymous flag</span>.
-
     <li><p>Set <var title>xhr</var>'s
     <span title=concept-XMLHttpRequest-settings-object>settings object</span> to the
     <span data-anolis-spec=html title="relevant settings object for a global object">relevant settings object</span>
@@ -761,7 +745,6 @@
     exception if <var title>async</var> is false, the
     <span data-anolis-spec=html>JavaScript global environment</span> is a
     <span data-anolis-spec=html>document environment</span>, and either the
-    <span>anonymous flag</span> is set, the
     <code title=dom-XMLHttpRequest-timeout>timeout</code> attribute is not
     zero, the
     <code title=dom-XMLHttpRequest-withCredentials>withCredentials</code>
@@ -856,7 +839,6 @@
  <li><p>If <var>async</var> is false, the
  <span data-anolis-spec=html>JavaScript global environment</span> is a
  <span data-anolis-spec=html>document environment</span>, and either the
- <span>anonymous flag</span> is set, the
  <code title=dom-XMLHttpRequest-timeout>timeout</code> attribute value is not zero, the
  <code title=dom-XMLHttpRequest-withCredentials>withCredentials</code> attribute value is
  true, or the <code title=dom-XMLHttpRequest-responseType>responseType</code> attribute
@@ -1089,10 +1071,9 @@
     the <span><code>send()</code> flag</span> is set.</p>
     <p>When set: throws an
     "<code data-anolis-spec=dom>InvalidAccessError</code>" exception if
-    either the <span>synchronous flag</span> is set and the
+    the <span>synchronous flag</span> is set and the
     <span data-anolis-spec=html>JavaScript global environment</span> is a
-    <span data-anolis-spec=html>document environment</span> or if the
-    <span>anonymous flag</span> is set.</p>
+    <span data-anolis-spec=html>document environment</span>.</p>
    </dd>
   </dl>
 
@@ -1115,9 +1096,6 @@
    <span data-anolis-spec=dom title=concept-throw>throw</span> an
    "<code data-anolis-spec=dom>InvalidStateError</code>" exception.
 
-   <li><p>If the <span>anonymous flag</span> is set,
-   <span data-anolis-spec=dom title=concept-throw>throw</span> an
-   "<code data-anolis-spec=dom>InvalidAccessError</code>" exception.
 
    <li><p>If the
    <span data-anolis-spec=html>JavaScript global environment</span> is a
@@ -1397,10 +1375,8 @@
        <dd>The <span>source origin</span>.</dd>
 
        <dt>referrer source
-       <dd>If the <span>anonymous flag</span> is set, the
-       <span data-anolis-spec=url>URL</span>
-       "<code title>about:blank</code>", and the
-       <span>referrer source</span> otherwise.
+       <dd>The
+       <span>referrer source</span>.
 
        <dt>omit credentials flag</dt>
        <dd>Set if
--- a/data/xrefs/dom/xhr.json	Fri Nov 22 17:27:30 2013 +0900
+++ b/data/xrefs/dom/xhr.json	Fri Nov 22 17:39:47 2013 +0900
@@ -1,7 +1,6 @@
 {
   "definitions": {
     "abort error": "abort-error",
-    "anonymous flag": "anonymous-flag",
     "arraybuffer response entity body": "arraybuffer-response-entity-body",
     "author request headers": "author-request-headers",
     "blob response entity body": "blob-response-entity-body",
@@ -89,7 +88,6 @@
     "xmlhttprequest": "xmlhttprequest",
     "xmlhttprequest task source": "xmlhttprequest-task-source",
     "xmlhttprequesteventtarget": "xmlhttprequesteventtarget",
-    "xmlhttprequestoptions": "xmlhttprequestoptions",
     "xmlhttprequestresponsetype": "xmlhttprequestresponsetype",
     "xmlhttprequestupload": "xmlhttprequestupload"
   },