Igalia / wolvic

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

[Chromium] Prevent a crash when downloading files #1458

Closed svillar closed 3 months ago

svillar commented 3 months ago

It might happen that by the time a new download is triggered the session does no longer have a content delegate. In those cases we should just bail out to avoid a null pointer dereference.

It's really hard to reproduce as it depends on specific timing, but I triggered it by clicking on a search result in Google that was pointing to a PDF archive.