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: render process crash handling #34428
fix: render process crash handling #34428
Conversation
Could occur when a renderer crashes and the same-origin URL is loaded again which leads to reusing the renderer process.
Tests failing due to |
The electron/shell/browser/api/electron_api_web_contents.cc Lines 1506 to 1508 in eb26f99
This occurs when the RFH has crashed and a new one is setup for same-origin navigation while the existing WebFrameMain reference is kept alive. First electron/shell/browser/api/electron_api_web_contents.cc Lines 1520 to 1522 in eb26f99
Then electron/shell/browser/api/electron_api_web_contents.cc Lines 1572 to 1585 in eb26f99
|
Release Notes Persisted
|
I have automatically backported this PR to "18-x-y", please check out #34430 |
I have automatically backported this PR to "19-x-y", please check out #34431 |
I have automatically backported this PR to "20-x-y", please check out #34432 |
* fix: crash when renderer process is reused Could occur when a renderer crashes and the same-origin URL is loaded again which leads to reusing the renderer process. * test: renderer process crash recovery * fix: handle case which leads to render frame DCHECK * fix: lint
Description of Change
#34411 didn't have a repro case by the time of merging. This PR includes a test which reproduced the crash prior to the fix.
Additionally, another crash was found while testing same-origin crash recovery. That fix is included as well.
Checklist
npm test
passesRelease Notes
Notes: Fixed a crash when loading a same-origin URL after a render process crash.