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 when unloading some WebViews #40400

Merged
merged 1 commit into from Nov 3, 2023
Merged

Conversation

codebytere
Copy link
Member

Description of Change

Closes #40391.
Refs #39428.

Fixes an issue where WebViews could sometimes crash on unload as a result of recent changes made to WebContentsZoomController. Previously, we called back to observers in several fewer places, and when I updated the ZoomController impl, I didn't pull in changes to guest_view_base.cc which handle potential looping as a result of these events by early-exiting if the new zoom level isn't different.

Checklist

Release Notes

Notes: Fixed an issue where WebViews could sometimes crash on unload.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Nov 1, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Nov 1, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Nov 2, 2023
@codebytere codebytere requested a review from ckerr November 2, 2023 13:33
@jkleinsc jkleinsc merged commit 5b18d90 into main Nov 3, 2023
22 checks passed
@jkleinsc jkleinsc deleted the fix-webview-zoom-updating branch November 3, 2023 14:36
Copy link

release-clerk bot commented Nov 3, 2023

Release Notes Persisted

Fixed an issue where WebViews could sometimes crash on unload.

@trop
Copy link
Contributor

trop bot commented Nov 3, 2023

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

@trop trop bot added in-flight/26-x-y and removed target/26-x-y PR should also be added to the "26-x-y" branch. labels Nov 3, 2023
@trop
Copy link
Contributor

trop bot commented Nov 3, 2023

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

@trop
Copy link
Contributor

trop bot commented Nov 3, 2023

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

@trop trop bot added in-flight/27-x-y in-flight/28-x-y merged/28-x-y PR was merged to the "28-x-y" branch. and removed target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Nov 3, 2023
@trop trop bot added merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. and removed in-flight/28-x-y in-flight/26-x-y in-flight/27-x-y labels Nov 3, 2023
MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: App crashes when unloading webview before it finished rendering since Electron 26.1.0
3 participants