Skip to content

Commit 35adbff

Browse files
committed
fix: additional params to create chromium browser for testing
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent 01f3d3e commit 35adbff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/wasm/setup_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ func chromectx(t *testing.T) context.Context {
3636
// see https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
3737
opts := append(chromedp.DefaultExecAllocatorOptions[:],
3838
chromedp.NoSandbox,
39+
chromedp.Flag("disable-web-security", true),
40+
chromedp.Flag("safebrowsing-disable-auto-update", true),
41+
chromedp.IgnoreCertErrors,
42+
chromedp.Flag("disable-sync", true),
43+
chromedp.Flag("disable-default-apps", true),
44+
chromedp.NoFirstRun,
45+
chromedp.Headless,
3946
)
4047

4148
allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)

0 commit comments

Comments
 (0)