Open Bug 889267 Opened 12 years ago Updated 3 years ago

nsISound is completely broken as of FF22

Categories

(Core :: Widget: Gtk, defect, P5)

22 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: 4mr.minj, Unassigned)

Details

As a simple test, open the web console in e. g. about:addons and run: var soundService = Components.classes['@mozilla.org/sound;1'] .getService(Components.interfaces.nsISound); soundService.beep(); // no sound, no exception // play() doesn't work either I've found a similar bug but it hasn't had any updates for quite some time and was reportedly fixed (sound used to work just fine couple releases back, plus there is no exception this time): https://bugzilla.mozilla.org/show_bug.cgi?id=536996
Did it use to work in previous versions of Firefox?
Flags: needinfo?(4mr.minj)
Yes, I do not exactly know when it broke, though. I am maintaining an add-on which uses the same codebase for Firefox and Chrome but I do more testing on the latter so it's hard to tell when things went wrong but it has worked before for sure. Most probably FF21. I've asked for feedback and, strangely enough, some add-on users (even on Linux) don't experience the issue while a small portion of the do experience it even on Windows. As a sanity check I've tested the Audio() object instead and it works just fine. I'll use it for now but just wanted to report it as a courtesy. My system info: Lubuntu 12.10 x86_64 Linux 3.5.0-36-generic pulseaudio 2.1
On my Win 7 with FF22, your test passes, I hear the beep. But if you're able to reproduce the issue on your machine, could you use the tool mozregression (see http://harthur.github.io/mozregression/ for details) to find a possible regression range, please (post the changeset of the bisection). FF21 nightlies started in Jan. 2013 (mozregression --good=2013-01-01).
Works for me on ubuntu12.04. http://hg.mozilla.org/releases/mozilla-release/rev/e55e45536133 Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0 ID:20130618035212
OK, I was waiting to get more feedback from users who also reported the issue to me but they don't seem to be willing to contribute:/ I haven't actually used the regression tool because I wanted to first find the actual release that worked manually. I tried beep() untill even with FF18 and I couldn't hear anything. HOWEVER, I also tried play() of a chrome resource (the thing that prompted me to report the bug in the first place) and it started working in ALL versions all of a sudden (at that point I've had uninstalled/installed a few firefox releases). So it must have been an unrelated temporary issue. So nsISound is not 'completely broken'. It's just beep() that doesn't work for me for some reason. Maybe this is Lubuntu-related
Flags: needinfo?(4mr.minj)
nsISound::beep() is still not working here. nsISound::play() is fine FF25 Ubuntu 13.10 amd64 Pulseaudio 4.0
Can you try to use the tool mozregression, please.
Flags: needinfo?(4mr.minj)
Like I've posted earlier it does not even work in FF18 but I'll ty
Flags: needinfo?(4mr.minj)
Component: Shell Integration → Widget: Gtk
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.