refactor: remove InspectableWebContentsViewMac in favor of the Views version (#41326)

This commit is contained in:
Jeremy Rose 2024-03-04 09:32:40 -08:00 committed by GitHub
parent 814ba71dc1
commit e67ab9a93d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 304 additions and 956 deletions

View file

@ -117,11 +117,6 @@ BaseWindow::BaseWindow(gin_helper::Arguments* args,
BaseWindow::~BaseWindow() {
CloseImmediately();
// Destroy the native window in next tick because the native code might be
// iterating all windows.
base::SingleThreadTaskRunner::GetCurrentDefault()->DeleteSoon(
FROM_HERE, window_.release());
// Remove global reference so the JS object can be garbage collected.
self_ref_.Reset();
}