mirror of
https://github.com/electron/electron.git
synced 2026-01-23 22:38:18 -05:00
Fix using invalid pointer as SiteInstance
This commit is contained in:
@@ -129,8 +129,9 @@ void AtomBrowserClient::OverrideSiteInstanceForNavigation(
|
||||
if (url.SchemeIs(url::kJavaScriptScheme))
|
||||
return;
|
||||
|
||||
*new_instance =
|
||||
content::SiteInstance::CreateForURL(browser_context, url).get();
|
||||
scoped_refptr<content::SiteInstance> site_instance =
|
||||
content::SiteInstance::CreateForURL(browser_context, url);
|
||||
*new_instance = site_instance.get();
|
||||
|
||||
// Remember the original renderer process of the pending renderer process.
|
||||
auto current_process = current_instance->GetProcess();
|
||||
|
||||
2
vendor/brightray
vendored
2
vendor/brightray
vendored
Submodule vendor/brightray updated: 2f3fbc1594...531df4370b
Reference in New Issue
Block a user