Closed Bug 530321 Opened 16 years ago Closed 14 years ago

Audio Object Error

Categories

(Core :: Audio/Video, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: matheusavs2, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 When I put this code: function LoadSound(url){ pendingLoad++; var snd = new Audio(); snd.onload = ObjectLoaded snd.src = 'audio/'+url; snd.load(); return snd; } It doesn't works, and the onload function isn't called. But if I comment this line, it works: function LoadSound(url){ //pendingLoad++; var snd = new Audio(); snd.onload = ObjectLoaded snd.src = 'audio/'+url; snd.load(); return snd; } Reproducible: Always Actual Results: The onload function doesn't fire. Expected Results: The onload function should be called.
This bug only occurs if the file is .wav
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio
Can you either attach a testcase to this bug or upload one to a publicly accessible URL and post the URL here? Does the bug still exist in the latest Firefox 4 nightly build? You can download the latest nightly here: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/ You'll need to either close all your open Firefox windows before running the nightly, or you'll need to run the nightly with the command line parameters "--no-remote -P" and create and run with a new profile.
We no longer fire a load event at media elements on trunk, we haven't heard back from the guy, and we only take security and stability fixes on non-trunk branches, so marking this bugs as WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.