<?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>22381</bug_id>
          
          <creation_ts>2013-06-16 02:29:12 +0000</creation_ts>
          <short_desc>When the user agent reestablishes or fails the connection it would be useful to have some indication of the reason for failure. Consider that most applications will wish to inform their user of an  [...]</short_desc>
          <delta_ts>2013-07-02 22:33:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89364</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-16 02:29:12 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top
Referrer: 

Comment:
When the user agent reestablishes or fails the connection it would be useful
to have some indication of the reason for failure.

Consider that most applications will wish to inform their user of an error
rather than fail silently; if the best possible is &quot;Connection failed for
unknown reason&quot; this gives no hints to the user about how to solve the
problem.

For example the ability to report the difference between a Not Found error and
a connection timeout can inform users if they should check their own network
connection or contact the site administrator.

The fact that the user agent is supposed to attempt to reconnect is not alone
sufficient to let an error go unreported.  If someone&apos;s network cable falls
out it can attempt to reestablish forever, but it would be much more effective
to prompt the user to plug it back in.

While in theory this could be used to gather information about a network, such
is already available by making ordinary CORS requests (via XMLHttpRequest etc)

Posted from: 108.20.225.179
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89715</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-21 16:23:12 +0000</bug_when>
    <thetext>Actually we don&apos;t provide any less information than you can get in other ways, as far as I can tell.

We can&apos;t, because leaking information about the network would, as you surmise, be a security problem, e.g. exposing intranet topology.

I&apos;ve updated the spec to suggest that debugging info be provided in consoles, but I don&apos;t know if that helps your case.

Would you like the browser to tell the user what it knows about connection problems as well, somehow?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>