Open Bug 1671968 Opened 4 years ago Updated 4 years ago

Playback continues even after closing a tab

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 81
defect

Tracking

()

UNCONFIRMED

People

(Reporter: rafal.pastuszak, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

  1. visit http://www.p01.org/MONOSPACE/monospace-compatible.htm
  2. wait till the playback starts
  3. close the tab

Actual results:

Playback continues
The corresponding process takes up significant RAM (1GB)

Platforms affected: Mac (Big Sur, Mojave), Windows 10, Android.

Expected results:

Playback should stop since the tab has been closed

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Side note and probably related: the page is particularly laggy due to bug 1190398.

Profile run https://share.firefox.dev/2Ht04Ym (I start the demo after ~12 seconds so have zoomed in on the region where it's playing).

It looks to be canvas and web audio based. The perf issues look to be related to the canvas. I think what's happening this between the slowdown from the canvas and the web audio we end up with various tasks trying to run to completion after the tab is closed, which keeps the demo running so we keep hearing the sound.

Moving to canvas component.

Blocks: canvas-perf
Component: Audio/Video: Playback → Canvas: 2D

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lsalzman)
Severity: -- → S3
Flags: needinfo?(lsalzman) → needinfo?(jmuizelaar)
You need to log in before you can comment on or make changes to this bug.