<?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>13071</bug_id>
          
          <creation_ts>2011-06-27 17:03:03 +0000</creation_ts>
          <short_desc>&quot;Once the end of the file is reached, the user agent must dispatch the event one final time, as defined below&quot; means an implementation may parse a partial (corrupt) event as a final event if the connection is interrupted. Spec should always require an exp</short_desc>
          <delta_ts>2011-08-04 21:54:14 +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>HISTORICAL - Server-Sent Events (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>art.barstow</cc>
    
    <cc>bugs</cc>
    
    <cc>ian</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>50369</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-06-27 17:03:03 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
&quot;Once the end of the file is reached, the user agent must dispatch the event
one final time, as defined below&quot; means an implementation may parse a partial
(corrupt) event as a final event if the connection is interrupted. Spec should
always require an explicit blank line to trigger dispatch, even at the end.

Posted from: 2620:101:8003:200:21e:c2ff:febf:6705
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:7.0a1) Gecko/20110623 Firefox/7.0a1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50719</commentid>
    <comment_count>1</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2011-07-06 11:21:22 +0000</bug_when>
    <thetext>See this comment from Dan Veditz: http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/0097.html

[[
FWIW I&apos;m going to push for the Mozilla implementation to dispatch
only when an event is clearly terminated with a blank line (I filed
the bug). If EOF is encountered w/out a blank line it should be
considered an incomplete/corrupted event.

The &quot;fix&quot; for the spec would be to drop the line

   Once the end of the file is reached, the user agent must
   dispatch the event one final time, as defined below.

For clarity something explicit could be added

   If the end of the file is reached while collecting
   data and before encountering a blank line the incomplete
   event must not be dispatched.

]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50720</commentid>
    <comment_count>2</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2011-07-06 11:22:57 +0000</bug_when>
    <thetext>See Anne van Kesteren&apos;s reply to Dan Veditz (comment #1): http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/0127.html

[[
The ABNF in http://dev.w3.org/html5/eventsource/#parsing-an-event-stream  
would also need updating.
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54199</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-04 21:54:14 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6371.
Check-in comment: Change text/event-stream to drop final events not followed by a blank line, since otherwise interrupted streams would fire incomplete events.
http://html5.org/tools/web-apps-tracker?from=6370&amp;to=6371</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>