You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something in our application is causing the Accept incoming network connections dialog to get triggered. I tried to reproduce on other sites but haven't been able to. I have logs that I gathered via DEBUG=pw:browser*,pw:protocol but would prefer to send them privately.
Can it be that your application is trying to run a web server and that it requires extra permissions from the system? or might be some JVM debugging port? Playwright itself doesn't listen for incoming traffic normally, can you share the code that triggers the dialog?
Thanks! I tried that and don't see any dialogs, my hunch is that it is because the VM tries to open debugging port. Try running from terminal, something like this:
Yury Semikhatsky (@yury-s) I still see it when i run mvn exec:java -e -Dexec.mainClass=MainClass. I don't see it on other sites for my company, only a couple of them. I have browser and protocol logs that i'm going to send over slack if you wouldn't mind taking a look. Thank you!
I don't see anything unusual there, no network request from the browser. My hunch is that new Chromium might have introduced some feature that requires listening to incoming connections but you are saying that it's happening with older versions too (1.19 etc).
Do you see this dialog if you run Chromium without Playwright from terminal like below?
Well, that's definitely a Chromium issue then, I believe all the flags we pass should not matter, you can try with the shorter command line and see the same dialog:
It probably has something todo with security settings on your Mac, do you know if this dialog comes from an anti-virus (looks like a system one but want to double check)? The problem is I can't reproduce it to give you an advice.
Can you confirm that adding the new flag fixes the problem for you (try replacing MediaRouter with DialMediaRouteProvider in the command line above, you can also do it for the browser in playwright using a combination of setIgnoreDefaultArgs and setArgs)?
Yury Semikhatsky (@yury-s) using the short command /Users/umairchagani/Library/Caches/ms-playwright/chromium-1000/chrome-mac/Chromium.app/Contents/MacOS/Chromium --no-sandbox --user-data-dir=/tmp/your-profile I see the dialog right away without even navigating to any page.
Adding in DialMediaRouteProvider to the --disabled-features flag still shows the dialog.
I also tried this on a personal computer and did NOT see the dialog. so it must be the work computer. i guess i'll try digging around. is it expected to not see it headless but only when headful?
Activity
yury-s commentedon Apr 22, 2022
Can it be that your application is trying to run a web server and that it requires extra permissions from the system? or might be some JVM debugging port? Playwright itself doesn't listen for incoming traffic normally, can you share the code that triggers the dialog?
xadvfh commentedon Apr 25, 2022
Not that I know of.
Yury Semikhatsky (@yury-s) sent you a slack message with the reproducible snippet.
yury-s commentedon Apr 25, 2022
Thanks! I tried that and don't see any dialogs, my hunch is that it is because the VM tries to open debugging port. Try running from terminal, something like this:
xadvfh commentedon Apr 25, 2022
Yury Semikhatsky (@yury-s) I still see it when i run
mvn exec:java -e -Dexec.mainClass=MainClass. I don't see it on other sites for my company, only a couple of them. I have browser and protocol logs that i'm going to send over slack if you wouldn't mind taking a look. Thank you!yury-s commentedon Apr 25, 2022
Can you post a screenshot of the dialog that you see?
xadvfh commentedon Apr 25, 2022
Sure here you go:

xadvfh commentedon Apr 29, 2022
Yury Semikhatsky (@yury-s) just wanted to see if you were able to learn anything from the logs i sent over slack?
yury-s commentedon Apr 29, 2022
I don't see anything unusual there, no network request from the browser. My hunch is that new Chromium might have introduced some feature that requires listening to incoming connections but you are saying that it's happening with older versions too (1.19 etc).
Do you see this dialog if you run Chromium without Playwright from terminal like below?
xadvfh commentedon Apr 29, 2022
Yury Semikhatsky (@yury-s) yes I can see the dialog when running without playwright using the command you linked
yury-s commentedon Apr 29, 2022
Well, that's definitely a Chromium issue then, I believe all the flags we pass should not matter, you can try with the shorter command line and see the same dialog:
It probably has something todo with security settings on your Mac, do you know if this dialog comes from an anti-virus (looks like a system one but want to double check)? The problem is I can't reproduce it to give you an advice.
yury-s commentedon Apr 29, 2022
Andrey Lushnikov (@aslushnikov) pointed out that he was fixing similar issue a year ago in microsoft/playwright#8162 and it looks like the feature flag was renamed to DialMediaRouteProvider, we'll update the flags that we pass to Chromium by default.
Can you confirm that adding the new flag fixes the problem for you (try replacing MediaRouter with DialMediaRouteProvider in the command line above, you can also do it for the browser in playwright using a combination of setIgnoreDefaultArgs and setArgs)?
xadvfh commentedon Apr 29, 2022
Yury Semikhatsky (@yury-s) using the short command
/Users/umairchagani/Library/Caches/ms-playwright/chromium-1000/chrome-mac/Chromium.app/Contents/MacOS/Chromium --no-sandbox --user-data-dir=/tmp/your-profileI see the dialog right away without even navigating to any page.Adding in
DialMediaRouteProviderto the--disabled-featuresflag still shows the dialog.I also tried this on a personal computer and did NOT see the dialog. so it must be the work computer. i guess i'll try digging around. is it expected to not see it headless but only when headful?
yury-s commentedon Apr 29, 2022
Yes, the feature is not available in headless.
yury-s commentedon May 13, 2022
xadvfh can you check if it still reproduces with the new release 1.22.0 ?
yury-s commentedon May 18, 2022
It should be fixed by microsoft/playwright#13854, please file a new issue if it still reproduces on v1.22.0+