feat: sandbox preloads by default (#32869)
This commit is contained in:
parent
f63bba8ce2
commit
4190ec2482
3 changed files with 7 additions and 4 deletions
|
@ -316,9 +316,7 @@ bool WebContentsPreferences::IsSandboxed() const {
|
|||
if (sandbox_)
|
||||
return *sandbox_;
|
||||
bool sandbox_disabled_by_default =
|
||||
node_integration_ || node_integration_in_worker_ || preload_path_ ||
|
||||
!SessionPreferences::GetValidPreloads(web_contents_->GetBrowserContext())
|
||||
.empty();
|
||||
node_integration_ || node_integration_in_worker_;
|
||||
return !sandbox_disabled_by_default;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue