feat: enable sandbox by default in limited circumstances (#30197)

This commit is contained in:
Jeremy Rose 2021-08-03 15:07:03 -07:00 committed by GitHub
parent a17e48061a
commit 8179349625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 21 deletions

View file

@ -68,6 +68,7 @@ class WebContentsPreferences
bool ShouldUseNativeWindowOpen() const { return native_window_open_; }
bool IsWebSecurityEnabled() const { return web_security_; }
bool GetPreloadPath(base::FilePath* path) const;
bool IsSandboxed() const;
private:
friend class content::WebContentsUserData<WebContentsPreferences>;
@ -88,7 +89,7 @@ class WebContentsPreferences
bool node_integration_in_worker_;
bool disable_html_fullscreen_window_resize_;
bool webview_tag_;
bool sandbox_;
absl::optional<bool> sandbox_;
bool native_window_open_;
bool context_isolation_;
bool javascript_;