Skip to content

Commit b384243

Browse files
committed
1 parent f1fcc1a commit b384243

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/runner/drivers/chromedp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func getChromedpAllocator(opts runner.Options) (*browserInstance, error) {
8686
chromedp.Flag("explicitly-allowed-ports", restrictedPorts()),
8787
chromedp.Flag("no-sandbox", true),
8888
chromedp.Flag("disable-gpu", true),
89+
chromedp.Flag("enable-unsafe-swiftshader", true), // https://github.com/chromedp/chromedp/commit/422fa06290cda228e5712bdda55fbf7a0f6c8466
8990
chromedp.WindowSize(opts.Chrome.WindowX, opts.Chrome.WindowY),
9091
chromedp.UserDataDir(userData),
9192
)

pkg/runner/drivers/go-rod.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func NewGorod(logger *slog.Logger, opts runner.Options) (*Gorod, error) {
6161
Set("explicitly-allowed-ports", restrictedPorts()).
6262
Set("no-sandbox").
6363
Set("disable-gpu").
64+
Set("enable-unsafe-swiftshader"). // https://github.com/chromedp/chromedp/commit/422fa06290cda228e5712bdda55fbf7a0f6c8466
6465
Set("disable-default-apps").
6566
Set("hide-scrollbars").
6667
Set("mute-audio").

0 commit comments

Comments
 (0)