Open Bug 1750734 Opened 2 years ago Updated 2 years ago

Virtual media controls does not get clear when iframe is removed

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 96
defect

Tracking

()

People

(Reporter: islandofcalmness, Assigned: alwu)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0

Steps to reproduce:

  1. Go to https://indivisible.github.io/firefox-media-controls-stay-bug-sample/
  2. Click play on the youtube embed
  3. Click the "remove" button under it

Actual results:

The registered MPRIS controls do not disappear after the playing media is removed from the DOM.

Expected results:

The registered controls should disappear when the media is removed from the document.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

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

Alastor, this sounds like a Linux media control service related issue. Do you know who would be a good candidate to ask for help? Thanks a lot.

Flags: needinfo?(alwu)

(In reply to John Lin [:jhlin][:jolin] from comment #2)

Alastor, this sounds like a Linux media control service related issue. Do you know who would be a good candidate to ask for help? Thanks a lot.

For what it's worth, I was also able to reproduce the bug on windows 10: there the OSD media controls (that pop up on volume changes for example) are bugged the same way.

When an iframe gets removed, we should suppose to notify chrome process to remove this destroyed media session in order to clean up the virtual control interface. But it seems that that step was being called too late and IPC was already shutdowned. Therefore, we can't update that information back to the chrome process.

Assignee: nobody → alwu
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(alwu)
Priority: -- → P3
Summary: MPRIS media controls do not disappear → Virtual media controls does not get clear when iframe is removed
You need to log in before you can comment on or make changes to this bug.