Skip to content

Commit 296bf68

Browse files
chore: Align code/src/main.ts with upstream
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent 1ed55bc commit 296bf68

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

code/src/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,14 @@ function configureCommandlineSwitchesSync(cliArgs: NativeParsedArgs) {
320320
}
321321
});
322322

323+
// Following features are enabled from the runtime:
324+
// `DocumentPolicyIncludeJSCallStacksInCrashReports` - https://www.electronjs.org/docs/latest/api/web-frame-main#framecollectjavascriptcallstack-experimental
325+
// `EarlyEstablishGpuChannel` - Refs https://issues.chromium.org/issues/40208065
326+
// `EstablishGpuChannelAsync` - Refs https://issues.chromium.org/issues/40208065
327+
const featuresToEnable =
328+
`DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync,${app.commandLine.getSwitchValue('enable-features')}`;
329+
app.commandLine.appendSwitch('enable-features', featuresToEnable);
330+
323331
// Following features are disabled from the runtime:
324332
// `CalculateNativeWinOcclusion` - Disable native window occlusion tracker (https://groups.google.com/a/chromium.org/g/embedder-dev/c/ZF3uHHyWLKw/m/VDN2hDXMAAAJ)
325333
const featuresToDisable =

0 commit comments

Comments
 (0)