video and audio 404s don't throw resource errors

Originator:PatrickKettner
Number:rdar://18976421 Date Originated:11/13/2014
Status:Open Resolved:No
Product:Safari Product Version:8
Classification: Reproducible:
 
`<video>` and `<audio>` elements whose src's 404 on request are never thrown as errors. as a result, you are not able to tell if something failed to load.

Steps to Reproduce:
1. var video = document.createElement('video'); 
2. video.src="./fake-video.mp4"
3. document.body.appendChild(video); 
4. wait an eternity
5. notice that an eternity has passed and error has not thrown

alternatively open the attached file 

Expected Results:
all three elements in the attached file should immediately throw a resource error. only the img does.

Actual Results:
only the img does throws a resource error. 

Version:
Version 8.0.1 (10600.2.2) on OS X Yosemite (noted on all previously safari builds as well)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!