Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chromium] Prevent a crash when downloading files #1458

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

svillar
Copy link
Member

@svillar svillar commented Jun 25, 2024

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.

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.
@svillar svillar merged commit e7945de into main Jun 26, 2024
22 checks passed
@svillar svillar deleted the download_crash branch June 26, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants