Skip to content

fix: crash in WebFrameMain mojo connection when RenderFrameHost is nullptr - #34411

Merged
MarshallOfSound merged 2 commits into
mainfrom
samuelmaddock-fix/rfh-crash
Jun 1, 2022
Merged

fix: crash in WebFrameMain mojo connection when RenderFrameHost is nullptr#34411
MarshallOfSound merged 2 commits into
mainfrom
samuelmaddock-fix/rfh-crash

Conversation

@MarshallOfSound

Copy link
Copy Markdown
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 recently 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 recently 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

release-clerk Bot commented Jun 1, 2022

Copy link
Copy Markdown

Release Notes Persisted

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

@trop

trop Bot commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

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.

3 participants