fix(chromium): mark the flag --chromium-incognito as deprecated and ignore its value

This commit is contained in:
Julien Neuhart
2025-10-24 14:03:17 +00:00
parent 3eefe33e64
commit c7ccabc6cb
3 changed files with 7 additions and 9 deletions

View File

@@ -31,7 +31,6 @@ type browser interface {
type browserArguments struct {
// Executor args.
binPath string
incognito bool
allowInsecureLocalhost bool
ignoreCertificateErrors bool
disableWebSecurity bool
@@ -108,10 +107,6 @@ func (b *chromiumBrowser) Start(logger *zap.Logger) error {
chromedp.Flag("disable-component-update", false),
)
if b.arguments.incognito {
opts = append(opts, chromedp.Flag("incognito", b.arguments.incognito))
}
if b.arguments.allowInsecureLocalhost {
// See https://github.com/gotenberg/gotenberg/issues/488.
opts = append(opts, chromedp.Flag("allow-insecure-localhost", true))