WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
35088
Setting src on <source> shouldn't restart the resource selection algorithm
https://bugs.webkit.org/show_bug.cgi?id=35088
Summary
Setting src on <source> shouldn't restart the resource selection algorithm
Simon Pieters (:zcorpan)
Reported
2010-02-18 03:47:11 PST
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: <video><source></video> <script> onload = function(){ document.body.firstChild.firstChild.src = 'test.mp4'; } </script> 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 <source> element (so that "pointer" is between the <source> 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.
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Pieters (:zcorpan)
Comment 1
2010-02-18 03:47:39 PST
http://code.google.com/p/chromium/issues/detail?id=36120
Simon Pieters (:zcorpan)
Comment 2
2010-02-18 23:18:58 PST
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).
Arun Patole
Comment 3
2012-02-01 01:44:14 PST
I couldn't reproduce this issue with the latest webkit code. Also the related chromium issue mentioned in
Comment #1
is already closed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug