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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>68308</bug_id>
          
          <creation_ts>2011-09-16 22:50:52 -0700</creation_ts>
          <short_desc>&lt;video&gt; element not firing onerror events</short_desc>
          <delta_ts>2020-05-04 07:48:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://blog.offbeatmammal.com/samples/jserr/videoOnError.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Offbeatmammal">offbeatmammal</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>arun.patole</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>offbeatmammal</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>469038</commentid>
    <comment_count>0</comment_count>
    <who name="Offbeatmammal">offbeatmammal</who>
    <bug_when>2011-09-16 22:50:52 -0700</bug_when>
    <thetext>although most events are being reported correctly it appears that the Error event for the &lt;video&gt; element is not being fired (attached via both onError or using an addEventListener) and simply get bypassed.

The linked sample demonstrates a simple example (invalid URL for asset) but other events (eg network being disconnected, asset being protected before fully downloaded etc) are also ignored

Tested in WebKit nightly, Chrome (and ChromeOS) and Safari - all fail.
IE9/10 works per spec
Not tested in Firefox

Chromium issue logged - http://code.google.com/p/chromium/issues/detail?id=96871 but I&apos;m guessing a fix here will roll upstream (will reference this bug from the Chromium link as well)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481568</commentid>
    <comment_count>1</comment_count>
    <who name="Arun Patole">arun.patole</who>
    <bug_when>2011-10-11 04:19:00 -0700</bug_when>
    <thetext>This doesn&apos;t look to be a bug. Error event on &quot;video&quot; is emitted only for source mentioned in &quot;video&quot; elements &quot;src&quot; attribute and not for the source mentioned in &quot;source&quot; elements &quot;src&quot; attribute. For error on &quot;source&quot; elements &quot;src&quot; attribute, Error event is emitted on that particular &quot;source&quot; element.

spec:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#concept-media-load-algorithm

In the example mentioned in this bug(url), if you try adding src=&quot;http://media.w3.org/2010/05/sintel/trailer-notfound.mp4&quot; in &lt;video&gt;, you will get errors on video element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503989</commentid>
    <comment_count>2</comment_count>
    <who name="Ami Fischman">fischman</who>
    <bug_when>2011-11-16 09:48:01 -0800</bug_when>
    <thetext>Although #1 is correct in that onerror fires for the &lt;source&gt; element in this case, ISTM there&apos;s no way to get the error code in this case.  &lt;source&gt; doesn&apos;t have an error object and the containing &lt;video&gt; element&apos;s .error is not set.  Bug/shortcoming in the spec?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>