Skip to content

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

Merged
VerteDinde merged 2 commits into
mainfrom
MarshallOfSound-patch-1
Mar 15, 2022
Merged

VerteDinde merged 2 commits into
mainfrom
MarshallOfSound-patch-1

Conversation

@MarshallOfSound

Copy link
Copy Markdown
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 recently label Feb 23, 2022
@MarshallOfSound MarshallOfSound added target/17-x-y and removed new-pr 🌱 PR opened recently labels Feb 23, 2022
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently 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 recently 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 force-pushed the MarshallOfSound-patch-1 branch from e77b1af to 1e542a7 Compare March 15, 2022 17:41
@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

release-clerk Bot commented Mar 15, 2022

Copy link
Copy Markdown

Release Notes Persisted

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

@trop

trop Bot commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

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.

3 participants