Closed Bug 1678612 Opened 4 years ago Closed 3 years ago

Parts of the sound from a loaded game tab is still played while being in a new tab

Categories

(Core :: Web Audio, defect)

Desktop
All
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox-esr78 --- wontfix
firefox83 --- wontfix
firefox84 --- wontfix
firefox85 --- wontfix

People

(Reporter: atrif, Unassigned)

References

()

Details

Attachments

(1 file)

Affected versions

  • 78.5.0esr (20201110001500)
  • 83.0 (20201112153044)
  • 84.0b3 (20201119195818)
  • 85.0a1(20201116210217)

Affected platforms

  • Windows 10x64
  • Ubuntu 20
  • macOS 11.0.1

Steps to reproduce

  1. Open Firefox and go https://poki.com/en/g/zoom-be.
  2. Open a new tab and wait.

Expected result

Actual result

  • Parts of the music are still played.

Regression range

  • Reproducible with Firefox 32.0a1 (2014-05-02) so I think it’s safe to assume that this is not a regression.

Suggested Severity: S3

Has STR: --- → yes

:atrif, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

Attached file webaudio log

It looks like the game plays sound using WebAudio. Before switching tab the log shows a series of lines like the following about every 1x or 2x ms, while after switching several series were batched once per second.

2020-12-05 23:48:16.427258 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.938667: detune for 438 SetValue value=0 time=0.000000 constant=0
2020-12-05 23:48:16.427289 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.938667: playbackRate for 438 SetValue value=1 time=0.000000 constant=0
2020-12-05 23:48:16.427313 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.938667: AudioBufferSourceNode 438 Connect() to AudioDestinationNode 0
2020-12-05 23:48:16.427324 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.938667: AudioBufferSourceNode 438 Start(7.008000, 0, 2.22507e-308)
2020-12-05 23:48:16.443229 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.954667: detune for 439 SetValue value=0 time=0.000000 constant=0
2020-12-05 23:48:16.443257 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.954667: playbackRate for 439 SetValue value=1 time=0.000000 constant=0
2020-12-05 23:48:16.443278 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.954667: AudioBufferSourceNode 439 Connect() to AudioDestinationNode 0
2020-12-05 23:48:16.443290 UTC - [Child 53594: Main Thread]: D/WebAudioAPI 6.954667: AudioBufferSourceNode 439 Start(7.024000, 0, 2.22507e-308)

I wonder if the script or API was throttled when in background.

Paul, would you like to have a look at this one? Thanks!

Flags: needinfo?(padenot)
Component: Audio/Video → Web Audio

(In reply to Alexandru Trif, QA [:atrif] from comment #0)

Expected result

The website is making calls to make sound, I don't know why it stops in Chrome, but this is buggy code.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(padenot)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: