feat: sandbox preloads by default (#32869)

This commit is contained in:
Jeremy Rose 2022-07-11 16:28:09 -07:00 committed by GitHub
parent f63bba8ce2
commit 4190ec2482
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -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;
}