Add an "affinity" option to webPreferences

This commit is contained in:
Emmanuel Kimmerlin 2017-12-13 11:57:41 +01:00 committed by Cheng Zhao
parent 8d55334016
commit 9c1b47361f
6 changed files with 242 additions and 12 deletions

View file

@ -280,6 +280,10 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
same `partition`. If there is no `persist:` prefix, the page will use an
in-memory session. By assigning the same `partition`, multiple pages can share
the same session. Default is the default session.
* `affinity` String (optional) - Sets the expected process hosting the page. Allow to gather
several pages in the same process. There are known limitations:
you can not host in the same site, pages with different preload file,
nodeIntegration or sandbox preferences.
* `zoomFactor` Number (optional) - The default zoom factor of the page, `3.0` represents
`300%`. Default is `1.0`.
* `javascript` Boolean (optional) - Enables JavaScript support. Default is `true`.