Skip to content

chore: debug crash on DevTools SetOwnerWindow - #47243

Merged
codebytere merged 1 commit into
mainfrom
fix-potential-race-crash
May 26, 2025
Merged

codebytere merged 1 commit into
mainfrom
fix-potential-race-crash

Conversation

@codebytere

@codebytere codebytere commented May 23, 2025 •

Copy link
Copy Markdown
Member

Description of Change

Debug #47187 by:

  1. Adding SEQUENCE_CHECKER for InspectableWebContents and DCHECK_CALLED_ON_VALID_SEQUENCE to InspectableWebContents::LoadCompleted
  2. Adding DCHECK(!owner_window_.WasInvalidated()) to ensure window of the webContents holding the devtools is valid
  3. Adding DCHECK_EQ(handle->owner_window(), nullptr) to ensure the devtools does not have a owner window

Checklist

Release Notes

Notes: none

@codebytere
codebytere requested review from ckerr and deepak1556 May 23, 2025 08:11
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 23, 2025
@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 May 23, 2025
@codebytere
codebytere force-pushed the fix-potential-race-crash branch from 44b814a to 4c9483c Compare May 23, 2025 10:40
@codebytere codebytere changed the title fix: crash on DevTools set owner window chore: debug crash on DevTools SetOwnerWindow May 23, 2025
@codebytere
codebytere requested a review from deepak1556 May 23, 2025 10:42

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about the SEQUENCE_CHECKER macro

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 24, 2025
@codebytere
codebytere merged commit c6f368a into main May 26, 2025
@codebytere
codebytere deleted the fix-potential-race-crash branch May 26, 2025 07:45
@release-clerk

release-clerk Bot commented May 26, 2025

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented May 26, 2025

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented May 26, 2025

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented May 26, 2025

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added in-flight/35-x-y in-flight/36-x-y in-flight/37-x-y and removed 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 May 26, 2025
@trop trop Bot added merged/37-x-y PR was merged to the "37-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. merged/35-x-y PR was merged to the "35-x-y" branch. and removed in-flight/37-x-y in-flight/36-x-y in-flight/35-x-y labels May 27, 2025
kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
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.

3 participants