You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Close webContents automatically when they are no longer referenced #48565
Close webContents automatically when they are no longer referenced in any form.
This would be a bit difficult to track as, from my understanding, these things aren't reference-counted. If anyone ever stores the webContents in another variable, we wouldn't be safe in closing the webContents (but we'd also have no way of knowing when that happens).
Activity
Prabhassharma177 commentedon Oct 16, 2025
nmggithub commentedon Feb 2, 2026
This would be a bit difficult to track as, from my understanding, these things aren't reference-counted. If anyone ever stores the
webContentsin another variable, we wouldn't be safe in closing thewebContents(but we'd also have no way of knowing when that happens).