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: race condition where webContents can be nullptr during re-focus and a multi-window close sequence #33063

Merged
merged 2 commits into from Mar 15, 2022

Conversation

MarshallOfSound
Copy link
Member

Not 100% sure if this fixes it but I believe this is the race condition.

Notes: Theoretical fix for a crash we're seeing when closing multiple child windows at the same time on macOS

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 23, 2022
@MarshallOfSound MarshallOfSound added target/17-x-y and removed new-pr 🌱 PR opened in the last 24 hours labels Feb 23, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 23, 2022
@MarshallOfSound MarshallOfSound added the semver/patch backwards-compatible bug fixes label Feb 23, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 24, 2022
@VerteDinde VerteDinde added semver/patch backwards-compatible bug fixes and removed semver/patch backwards-compatible bug fixes labels Mar 14, 2022
@VerteDinde VerteDinde merged commit c8a3a00 into main Mar 15, 2022
@VerteDinde VerteDinde deleted the MarshallOfSound-patch-1 branch March 15, 2022 17:45
@release-clerk
Copy link

release-clerk bot commented Mar 15, 2022

Release Notes Persisted

Theoretical fix for a crash we're seeing when closing multiple child windows at the same time on macOS

@trop
Copy link
Contributor

trop bot commented Mar 15, 2022

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

@trop
Copy link
Contributor

trop bot commented Mar 15, 2022

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

bavulapati pushed a commit to bavulapati/electron that referenced this pull request Apr 29, 2022
…and a multi-window close sequence (electron#33063)

* fix: race condition where webContents can be nullptr during re-focus and a multi-window close sequence

* chore: update electron_inspectable_web_contents_view.mm
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
…and a multi-window close sequence (electron#33063)

* fix: race condition where webContents can be nullptr during re-focus and a multi-window close sequence

* chore: update electron_inspectable_web_contents_view.mm
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.

None yet

3 participants