feat: add webPreferences.enablePreferredSizeMode (#25874)
* feat: add preferredSizeMode preference * docs: webPreferences.preferredSizeMode and event * docs: better explain preferred size * docs: small improvement * refactor: preferredSizeMode -> enablePreferredSizeMode
This commit is contained in:
parent
2aa5a1f494
commit
10a209ecba
7 changed files with 34 additions and 0 deletions
|
@ -143,6 +143,7 @@ WebContentsPreferences::WebContentsPreferences(
|
|||
SetDefaultBoolIfUndefined(options::kTextAreasAreResizable, true);
|
||||
SetDefaultBoolIfUndefined(options::kWebGL, true);
|
||||
SetDefaultBoolIfUndefined(options::kEnableWebSQL, true);
|
||||
SetDefaultBoolIfUndefined(options::kEnablePreferredSizeMode, false);
|
||||
bool webSecurity = true;
|
||||
SetDefaultBoolIfUndefined(options::kWebSecurity, webSecurity);
|
||||
// If webSecurity was explicitly set to false, let's inherit that into
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue