Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Headless mode ignores arguments like "ignoreDefaultArgs". works only in headful mode. #33768

Open
hschn opened this issue Nov 26, 2024 · 0 comments

Comments

@hschn
Copy link

hschn commented Nov 26, 2024

Version

1.49.0

Steps to reproduce

based on this example, I want to ignore the default value for "notifications", which is "allow". I want to have the chrome-default (which is "ask")

Image

this is my code:


const context: BrowserContext = await chromium.launchPersistentContext('./lpc',{
        ignoreDefaultArgs: ['--notifications'],
        headless: true,
    });

if I switch "headless" to false, everything works as expected and the value for "notifications" has "Ask (default)"

Expected behavior

settings for "notifications" have the value "Ask (default)

Actual behavior

settings for "notifications" have the value "Allow"

Additional context

No response

Environment

System:
	OS: Ubuntu 22.04.5 LTS
	CPU: Ryzen pro 6850u (8)
Binaries:
	Node: 20.17.0
	npm: 10.8.2
playwright:
	@playwright/tests: 1.49.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant