mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
fix: additional params to create chromium browser for testing
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -36,6 +36,13 @@ func chromectx(t *testing.T) context.Context {
|
||||
// see https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
|
||||
opts := append(chromedp.DefaultExecAllocatorOptions[:],
|
||||
chromedp.NoSandbox,
|
||||
chromedp.Flag("disable-web-security", true),
|
||||
chromedp.Flag("safebrowsing-disable-auto-update", true),
|
||||
chromedp.IgnoreCertErrors,
|
||||
chromedp.Flag("disable-sync", true),
|
||||
chromedp.Flag("disable-default-apps", true),
|
||||
chromedp.NoFirstRun,
|
||||
chromedp.Headless,
|
||||
)
|
||||
|
||||
allocCtx, cancel := chromedp.NewExecAllocator(context.Background(), opts...)
|
||||
|
||||
Reference in New Issue
Block a user