<?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>35088</bug_id>
          
          <creation_ts>2010-02-18 03:47:11 -0800</creation_ts>
          <short_desc>Setting src on &lt;source&gt; shouldn&apos;t restart the resource selection algorithm</short_desc>
          <delta_ts>2012-02-01 12:16:38 -0800</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>OS X 10.5</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>0</everconfirmed>
          <reporter name="Simon Pieters (:zcorpan)">zcorpan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>arun.patole</cc>
    
    <cc>eric.carlson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>191519</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2010-02-18 03:47:11 -0800</bug_when>
    <thetext>URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Chrome: FAIL
  Firefox 3.x: has different bugs
         IE 7: N/A
         IE 8: N/A
  Opera 10.50 beta: OK

What steps will reproduce the problem?
1. Consider:

&lt;video&gt;&lt;source&gt;&lt;/video&gt;
&lt;script&gt;
onload = function(){
  document.body.firstChild.firstChild.src = &apos;test.mp4&apos;;
}
&lt;/script&gt;

What is the expected result?

This should not load anything, because the resource selection algorithm 
should have been started during parsing and have discarded the &lt;source&gt; 
element (so that &quot;pointer&quot; is between the &lt;source&gt; and the end of the list). 

What happens instead?

Safari happily loads the video. The author should be required to 
explicitly call load() per spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191520</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2010-02-18 03:47:39 -0800</bug_when>
    <thetext>http://code.google.com/p/chromium/issues/detail?id=36120</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191834</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2010-02-18 23:18:58 -0800</bug_when>
    <thetext>If I run the script when clicking a button instead of onload, Safari still fails but Chrome passes (though I might have an older webkit for Safari).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>546908</commentid>
    <comment_count>3</comment_count>
    <who name="Arun Patole">arun.patole</who>
    <bug_when>2012-02-01 01:44:14 -0800</bug_when>
    <thetext>I couldn&apos;t reproduce this issue with the latest webkit code. Also the related chromium issue mentioned in Comment #1 is already closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>