Open Bug 1686895 Opened 4 years ago Updated 4 years ago

MediaSession artwork cannot be retrieved from object/data URLs

Categories

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

Firefox 85
defect

Tracking

()

UNCONFIRMED

People

(Reporter: stan.zhang2, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

Steps to reproduce:

Attached is a minimal test page that provides a MediaSession with artwork whose "src" is an object URL containing a PNG image (a 256x256 black triangle).

To try with a data URL, uncomment line 32 of the test page.

  1. Open test page.
  2. Click "play" on audio element.
  3. Press "play/pause" media key from keyboard.

Actual results:

At least on Windows 10 + Firefox 85.0b9, the system media overlay does not contain the image. This is reproducible in a new profile.

Note: the artwork is correctly populated with the same configuration, but with the artwork "src" referring to a image URL served over HTTP.

Note: Chrome is able to display artwork images from data and object URLs, both via its built-in media controls and through the system media overlay.

Expected results:

The system media overlay should have contained the image, even when loaded from a data or object URL.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: