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: crash in WebFrameMain mojo connection when RenderFrameHost is nullptr #34411

Merged
merged 2 commits into from Jun 1, 2022

Conversation

MarshallOfSound
Copy link
Member

Description of Change

Follow up to #33919. A code path involving speculative RenderFrameHosts being created is resulting in a crash when initially setting up the Mojo connection.

More investigation is still needed to determine what leads to this state where render_frame_ is a nullptr.

Checklist

Release Notes

Notes: Fixed potential crash in WebFrameMain when performing a cross-origin navigation.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 1, 2022
@MarshallOfSound MarshallOfSound added target/18-x-y semver/patch backwards-compatible bug fixes fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases labels Jun 1, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 1, 2022
@MarshallOfSound MarshallOfSound merged commit 1cd07c5 into main Jun 1, 2022
@MarshallOfSound MarshallOfSound deleted the samuelmaddock-fix/rfh-crash branch June 1, 2022 23:03
@release-clerk
Copy link

release-clerk bot commented Jun 1, 2022

Release Notes Persisted

Fixed potential crash in WebFrameMain when performing a cross-origin navigation.

@trop
Copy link
Contributor

trop bot commented Jun 1, 2022

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

@trop
Copy link
Contributor

trop bot commented Jun 1, 2022

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

@trop
Copy link
Contributor

trop bot commented Jun 1, 2022

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

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
…llptr (electron#34411)

* fix: crash when RenderFrameHost is nullptr

* chore: lint fix

Co-authored-by: samuelmaddock <samuel.maddock@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants