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

fix: potential crash on missing render frame #31289

Merged
merged 1 commit into from Oct 7, 2021
Merged

Conversation

codebytere
Copy link
Member

Description of Change

Closes #31281.

Fixes an potential crash in WebContents::MessageTo when a render frame has been destroyed. Both other calls to GetRendererApi() are guarded by CheckRenderFrame(), and so this PR adds the same check to this third callsite.

Checklist

Release Notes

Notes: Fixes an potential crash in WebContents::MessageTo when a render frame has been destroyed.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/13-x-y labels Oct 5, 2021
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Oct 5, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Oct 6, 2021
@codebytere codebytere merged commit 9c8bd18 into main Oct 7, 2021
@codebytere codebytere deleted the fix-render-frame-crash branch October 7, 2021 05:26
@release-clerk
Copy link

release-clerk bot commented Oct 7, 2021

Release Notes Persisted

Fixes an potential crash in WebContents::MessageTo when a render frame has been destroyed.

@trop
Copy link
Contributor

trop bot commented Oct 7, 2021

I have automatically backported this PR to "14-x-y", please check out #31333

@trop
Copy link
Contributor

trop bot commented Oct 7, 2021

I have automatically backported this PR to "15-x-y", please check out #31334

@trop
Copy link
Contributor

trop bot commented Oct 7, 2021

I have automatically backported this PR to "13-x-y", please check out #31335

@trop trop bot removed the target/15-x-y label Oct 7, 2021
@trop
Copy link
Contributor

trop bot commented Oct 7, 2021

I have automatically backported this PR to "16-x-y", please check out #31336

t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 27, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 27, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Crash in electron::api::WebFrameMain::GetRendererApi
3 participants