Skip to content

fix: make BrowserView aware of owning window - #31796

Merged
codebytere merged 1 commit into
mainfrom
store-owner-window
Nov 15, 2021
Merged

codebytere merged 1 commit into
mainfrom
store-owner-window

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Closes #29626.

Refactors based on the investigation performed in #29626 (comment). Makes it such that we are directly associating each BrowserView with its owning window if one exists, such that we don't need to indirectly check the owning window via the BrowserViews webContents, which may not exist e.g. if it's destroyed.

Should be landed after #31794.

Checklist

Release Notes

Notes: Fixed an issue where BrowserView may sometimes crash on browserView.webContents.destroy().

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/14-x-y labels Nov 11, 2021
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Nov 11, 2021
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Nov 12, 2021
@codebytere
codebytere merged commit 65e4f75 into main Nov 15, 2021
@codebytere
codebytere deleted the store-owner-window branch November 15, 2021 15:23
@release-clerk

release-clerk Bot commented Nov 15, 2021

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where BrowserView may sometimes crash on browserView.webContents.destroy().

@trop

trop Bot commented Nov 15, 2021

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Nov 15, 2021

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Nov 15, 2021

Copy link
Copy Markdown
Contributor

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

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 on browserView.webContents.destroy() call

3 participants