Skip to content

Commit 9e09f7b

Browse files
author
Austin Kelleher
committed
Upgrade Chromium binary and flags
1 parent 1b6e4f5 commit 9e09f7b

File tree

4 files changed

+9
-20
lines changed

4 files changed

+9
-20
lines changed

src/bin/aws.tar.br

-221 KB
Binary file not shown.

src/bin/chromium.br

100644100755
973 KB
Binary file not shown.

src/bin/swiftshader.tar.br

-145 Bytes
Binary file not shown.

src/chromium.ts

+9-20
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { promises as fsPromises } from 'fs';
22
import { join } from 'path';
33
import * as playwright from 'playwright-core';
44
import isLambdaRuntimeEnvironment from './util/isLambdaRuntimeEnvironment';
5-
import { LaunchOptions } from 'playwright-core/lib/server/browserType';
65
import isHeadlessModeEnabled from './util/isHeadlessModeEnabled';
76
import fileExists from './util/fileExists';
87
import setEnvironmentVariables from './util/setEnvironmentVariables';
9-
import getMemorySize from './util/getMemorySize';
8+
import { LaunchOptions } from 'playwright-core';
109

1110
const { inflate } = require('lambdafs');
1211

@@ -17,37 +16,32 @@ setEnvironmentVariables();
1716
*/
1817
export function getChromiumArgs(headless: boolean) {
1918
const result = [
19+
'--autoplay-policy=user-gesture-required',
20+
'--disable-background-networking',
2021
'--disable-background-timer-throttling',
22+
'--disable-backgrounding-occluded-windows',
2123
'--disable-breakpad',
2224
'--disable-client-side-phishing-detection',
23-
'--disable-cloud-import',
25+
'--disable-component-update',
2426
'--disable-default-apps',
2527
'--disable-dev-shm-usage',
28+
'--disable-domain-reliability',
2629
'--disable-extensions',
27-
'--disable-gesture-typing',
30+
'--disable-features=AudioServiceOutOfProcess',
2831
'--disable-hang-monitor',
29-
'--disable-infobars',
32+
'--disable-ipc-flooding-protection',
3033
'--disable-notifications',
3134
'--disable-offer-store-unmasked-wallet-cards',
32-
'--disable-offer-upload-credit-cards',
3335
'--disable-popup-blocking',
3436
'--disable-print-preview',
3537
'--disable-prompt-on-repost',
38+
'--disable-renderer-backgrounding',
3639
'--disable-setuid-sandbox',
3740
'--disable-speech-api',
3841
'--disable-sync',
39-
'--disable-tab-for-desktop-share',
40-
'--disable-translate',
41-
'--disable-voice-input',
42-
'--disable-wake-on-wifi',
4342
'--disk-cache-size=33554432',
44-
'--enable-async-dns',
45-
'--enable-simple-cache-backend',
46-
'--enable-tcp-fast-open',
47-
'--enable-webgl',
4843
'--hide-scrollbars',
4944
'--ignore-gpu-blacklist',
50-
'--media-cache-size=33554432',
5145
'--metrics-recording-only',
5246
'--mute-audio',
5347
'--no-default-browser-check',
@@ -56,15 +50,10 @@ export function getChromiumArgs(headless: boolean) {
5650
'--no-sandbox',
5751
'--no-zygote',
5852
'--password-store=basic',
59-
'--prerender-from-omnibox=disabled',
6053
'--use-gl=swiftshader',
6154
'--use-mock-keychain',
6255
];
6356

64-
if (getMemorySize() >= 1024) {
65-
result.push('--memory-pressure-off');
66-
}
67-
6857
if (headless === true) {
6958
result.push('--single-process');
7059
} else {

0 commit comments

Comments
 (0)