[Mm 37198] enable global sandboxing to increase security (#1667)

* prevent creating new windows from popup windows

* enable sandbox

* fix windows detection logic

* disable on testing environment

Co-authored-by: = <=>
This commit is contained in:
Guillermo Vayá
2021-07-23 16:07:48 +02:00
committed by GitHub
parent c567449854
commit 4e75007362
8 changed files with 24 additions and 10 deletions

View File

@@ -64,6 +64,7 @@ type Props = {
openMenu: () => void;
darkMode: boolean;
appName: string;
useNativeWindow: boolean;
};
type State = {
@@ -358,7 +359,7 @@ export default class MainPage extends React.PureComponent<Props, State> {
}
let titleBarButtons;
if (window.os.isWindows10) {
if (window.process.platform === 'win32' && !this.props.useNativeWindow) {
titleBarButtons = (
<span className='title-bar-btns'>
<div