Closed
Bug 475868
Opened 15 years ago
Closed 15 years ago
VIDEO.error not giving correct value
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
DUPLICATE
of bug 476731
People
(Reporter: BijuMailList, Unassigned)
Details
VIDEO.error.code not giving correct value steps :- 1. go to attachment 346840 [details] 2. click play button 3. let the movie play till you hear the sound 4. Change URL to http://www.double.co.nz/video_test/file_not_exist.xyz 5. Click "URL Change to" button 6. Wait for the URL to load Result:- user see VIDEO.error as null Expected:- [object HTMLMediaError] (and VIDEO.error.code = 2) continue test.... 7. Change URL to http://www.double.co.nz/video_test/8aug2007.ogg 8. Click "URL Change to" button 9. Wait for the URL to load 10. use bookmarklet :- javascript:alert($('v1').error.code); Result:- user see alert 1 Expected:- expected MEDIA_ERR_NETWORK (numeric value 2) http://www.whatwg.org/specs/web-apps/current-work/#dom-media-error
Comment 1•15 years ago
|
||
Marking as a dupe of 476731. Also note that, according to the spec, changing the src attribute while a video is playing (i.e. not in NETWORK_EMPTY state) will not cause an implicit load, so the testcase would need to call load() explicitly. Gecko's current behaviour (calling load() implicitly) is wrong, but it'll be changing when bug 465458 is fixed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•