<?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>28577</bug_id>
          
          <creation_ts>2015-04-28 04:55:54 +0000</creation_ts>
          <short_desc>[XMLHttpRequest] Throwing SecurityError on open() call for some kind of simple errors</short_desc>
          <delta_ts>2015-06-11 14:58:27 +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>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Takeshi Yoshino">tyoshino</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>tyoshino</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119970</commentid>
    <comment_count>0</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2015-04-28 04:55:54 +0000</bug_when>
    <thetext>Seems the WebAppSec WG attempted to make xhr.open() throw NetworkError for some errors that could be detected synchronously such as mixed content. What&apos;s the status of that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119971</commentid>
    <comment_count>1</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2015-04-28 05:11:13 +0000</bug_when>
    <thetext>Sorry. I meant SecurityError.

It has been removed on this change.
https://github.com/w3c/webappsec/commit/aac819b28287e8fd3a9ebad2666336e2bc77a24b

So, the consensus is:
- to handle it as network error
- in async mode, not throwing but dispatching an error event async

Right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119972</commentid>
    <comment_count>2</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2015-04-28 05:14:45 +0000</bug_when>
    <thetext>OK. Anne objected to the plan at https://lists.w3.org/Archives/Public/public-webappsec/2014Oct/thread.html#msg198</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119973</commentid>
    <comment_count>3</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2015-04-28 05:19:22 +0000</bug_when>
    <thetext>Maybe the same argument applies to the proposal of making send() throw.

Just wanna confirm what Anne think of that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119991</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-04-29 15:08:19 +0000</bug_when>
    <thetext>Yes, send() should only throw for synchronous XMLHttpRequest. Not otherwise. Now that Mixed Content is defined in terms of fetching this should all fall out naturally, no?

To recap, the status is that WebAppSec dropped their attempt and instead integrate with Fetch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120084</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-05-05 17:09:08 +0000</bug_when>
    <thetext>Takeshi, can this be closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120904</commentid>
    <comment_count>6</comment_count>
    <who name="Takeshi Yoshino">tyoshino</who>
    <bug_when>2015-06-11 14:03:17 +0000</bug_when>
    <thetext>OK. Please close. I&apos;ll reopen when necessary. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>