Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
813 stars 105 forks source link

[Chromium] Fix crash in media permissions #1422

Closed zakharvoit closed 6 months ago

zakharvoit commented 6 months ago

Requesting an empty list of either video or audio media sources is currently causing a crash because Wolvic expects aAudio or aVideo to be null in this case but Chromium provides an empty list instead. This patch makes the code more robust by supporting both an empty list and a null object.