Skip to content

fix: crash calling Fetch.continueResponse with WebContentsView#47434

Merged
codebytere merged 1 commit intomainfrom
fix-debugger-wcv-crash
Jun 11, 2025
Merged

fix: crash calling Fetch.continueResponse with WebContentsView#47434
codebytere merged 1 commit intomainfrom
fix-debugger-wcv-crash

Conversation

@codebytere
Copy link
Member

@codebytere codebytere commented Jun 10, 2025

Description of Change

Closes #46109

Fixes an issue where calling Fetch.continueResponse via debugger with WebContentsView could cause a crash. Some light investigation showed that RenderFrameDevToolsAgentHost::{Connect|Disconnect}WebContents() relied on the primary main frame of the passed webContents to attach, but it might be the case that the RenderFrameHost at hand is not in its primary main frame. If the new RenderFrameHost is not the primary main frame, we don't want to reconnect otherwise we'll end up potentially trying to reconnect to a RenderFrameHost that already has a DevToolsAgentHost associated with it.

See also this known bug in Chromium.

Checklist

Release Notes

Notes: Fixed an issue where calling Fetch.continueResponse via debugger with WebContentsView could cause a crash.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/35-x-y PR should also be added to the "35-x-y" branch. target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. labels Jun 10, 2025
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jun 10, 2025
@codebytere codebytere force-pushed the fix-debugger-wcv-crash branch from b3ce9c8 to 73aece3 Compare June 10, 2025 11:10
@codebytere codebytere requested a review from jkleinsc June 10, 2025 11:11
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jun 11, 2025
@codebytere codebytere merged commit 38fe140 into main Jun 11, 2025
59 checks passed
@codebytere codebytere deleted the fix-debugger-wcv-crash branch June 11, 2025 13:43
@release-clerk
Copy link

release-clerk bot commented Jun 11, 2025

Release Notes Persisted

Fixed an issue where calling Fetch.continueResponse via debugger with WebContentsView could cause a crash.

@trop
Copy link
Contributor

trop bot commented Jun 11, 2025

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

@trop trop bot removed the target/36-x-y PR should also be added to the "36-x-y" branch. label Jun 11, 2025
@trop
Copy link
Contributor

trop bot commented Jun 11, 2025

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

@trop
Copy link
Contributor

trop bot commented Jun 11, 2025

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

@trop trop bot added in-flight/35-x-y in-flight/37-x-y merged/37-x-y PR was merged to the "37-x-y" branch. and removed target/35-x-y PR should also be added to the "35-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. in-flight/37-x-y labels Jun 11, 2025
@trop trop bot added merged/35-x-y PR was merged to the "35-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. and removed in-flight/35-x-y in-flight/36-x-y labels Jun 11, 2025
kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
…lectron#47434)

fix: crash calling Fetch.continueResponse with WebContentsView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/35-x-y PR was merged to the "35-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebContentsView Fetch.continueResponse crashes electron EXCEPTION_ACCESS_VIOLATION

3 participants