Skip to content

fix: dangling rawptr NativeWindow::primary_web_contents_view_ - #52570

Merged
jkleinsc merged 2 commits into
44-x-yfrom
trop/44-x-y-bp-fix-dangling-rawptr-nativewindow-primary_web_contents_view_--1785456824044
Jul 31, 2026
Merged

jkleinsc merged 2 commits into
44-x-yfrom
trop/44-x-y-bp-fix-dangling-rawptr-nativewindow-primary_web_contents_view_--1785456824044

Conversation

@trop

@trop trop Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Backport of #52546

See that PR for details.

Notes: none.

trop Bot and others added 2 commits July 31, 2026 00:13
NativeWindow does not own the BrowserWindow's inspectable view, so its raw pointer could outlive the view during WebContents teardown. Track the Views lifetime instead of requiring each destruction path to clear the pointer.

Co-authored-by: Charles Kerr <[email protected]>
refactor: remove NativeWindow::primary_web_contents_view_initialized_

Co-authored-by: Charles Kerr <[email protected]>
@trop
trop Bot requested a review from ckerr July 31, 2026 00:14
@trop trop Bot added 44-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jul 31, 2026
@jkleinsc
jkleinsc merged commit bc7375f into 44-x-y Jul 31, 2026
126 of 128 checks passed
@release-clerk

release-clerk Bot commented Jul 31, 2026

Copy link
Copy Markdown

No Release Notes

@jkleinsc
jkleinsc deleted the trop/44-x-y-bp-fix-dangling-rawptr-nativewindow-primary_web_contents_view_--1785456824044 branch July 31, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

44-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant