fix: crash in gin::wrappable::secondweakcallback (#45368)
This commit is contained in:
parent
8cf2e46c1f
commit
ecd5d0a3a4
19 changed files with 233 additions and 6 deletions
|
@ -4569,6 +4569,10 @@ const char* WebContents::GetTypeName() {
|
|||
return GetClassName();
|
||||
}
|
||||
|
||||
void WebContents::WillBeDestroyed() {
|
||||
ClearWeak();
|
||||
}
|
||||
|
||||
ElectronBrowserContext* WebContents::GetBrowserContext() const {
|
||||
return static_cast<ElectronBrowserContext*>(
|
||||
web_contents()->GetBrowserContext());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue