<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14773</bug_id>
          
          <creation_ts>2011-11-11 19:03:19 +0000</creation_ts>
          <short_desc>Investigate if synchronous XHR in window context should not support new XHR responseTypes</short_desc>
          <delta_ts>2012-10-11 11:15:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>XHR</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olli Pettay">bugs</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59914</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-11-11 19:03:19 +0000</bug_when>
    <thetext>See also
https://bugzilla.mozilla.org/show_bug.cgi?id=701787
https://bugs.webkit.org/show_bug.cgi?id=72154
and WebApps mailing list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60471</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-11-25 08:48:21 +0000</bug_when>
    <thetext>So should this also happen for all cross-origin requests that do not use withCredentials as sicking seemed to suggest on the mailing list? Is that what is being implemented?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60517</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-11-27 01:44:07 +0000</bug_when>
    <thetext>I&apos;m not sure I understand the question. Here is what I proposed a few days ago and what I still think should be specified:

http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/0924.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60518</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-11-27 01:47:49 +0000</bug_when>
    <thetext>That is already defined. The question is whether invoking open() with a cross-origin URL should throw if async is false.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60519</commentid>
    <comment_count>4</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-11-27 02:00:38 +0000</bug_when>
    <thetext>cross-origin XHR has been supported for ages.
I don&apos;t think we can break it easily.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60520</commentid>
    <comment_count>5</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-11-27 06:00:19 +0000</bug_when>
    <thetext>Oh, crap, I worded that wrong. Yes, I think we should make it throw. We should be able to get data on if that is web compatible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60524</commentid>
    <comment_count>6</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-11-27 19:38:19 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Oh, crap, I worded that wrong. Yes, I think we should make it throw. We should
&gt; be able to get data on if that is web compatible.

Throw always when cross-origin sync XHR is used?
I would be surprised if that doesn&apos;t break some websites.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60529</commentid>
    <comment_count>7</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-11-28 06:33:55 +0000</bug_when>
    <thetext>Use of CORS is still fairly new. And use of synchronous CORS requests doesn&apos;t work at all cross browser since IE doesn&apos;t have a sync mode for XDR. So I think there&apos;s a good chance that it would work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75956</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-11 10:03:18 +0000</bug_when>
    <thetext>Jonas, Olli, what is your current opinion on this? I can make the specification say this, but if it&apos;s not going to be implemented, there&apos;s not much point :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75959</commentid>
    <comment_count>9</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-10-11 10:09:41 +0000</bug_when>
    <thetext>https://bugzilla.mozilla.org/show_bug.cgi?id=701787
is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75960</commentid>
    <comment_count>10</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-10-11 10:10:22 +0000</bug_when>
    <thetext>And looks like https://bugs.webkit.org/show_bug.cgi?id=72154 also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75961</commentid>
    <comment_count>11</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-10-11 10:11:47 +0000</bug_when>
    <thetext>Or do you mean only the CORS part?
That is not what this bug is about.
I assume it might be too late to change CORS handling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75965</commentid>
    <comment_count>12</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-11 11:15:31 +0000</bug_when>
    <thetext>Thank you Olli!

Since the anonymous flag is new I made open() throw for that. The only scenario where you can still do sync requests is same-origin requests and cross-origin requests where you have not set timeout/withCredentials/...

Apart from the new thing about the anonymous flag I think the specification matches Gecko now.

https://github.com/whatwg/xhr/commit/ac6d9b636bd6d86a9752006e8c34160a215e6fe1
http://xhr.spec.whatwg.org/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>