-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] [WebKit] The browser is appearing and asking to allow 'website' to use your camera and microphone, after running it in headless mode. #4959
Comments
Looks like it's macOS-specific, I can't reproduce it on Linux. |
Can reproduce it on Mac, the headless window becomes visible and the dialog shows up on top of it. |
Hey @yury-s |
No, I also see |
My understanding is that the bug is the opposite: it should query the permission in headed mode as well. And there should be a way to suppress the permission check via granting context user media permissions. |
We currently don't support camera and microphone permissions in webkit. It's particularly hard in webkit because the implementation differs a lot between platforms (doesn't work on Windows for example) so we are not ready to add them at the moment. Without such permissions it's not clear what a meaningful fix for this bug would be, we could suppress the dialog and simply dismiss the dialog but that would fix just one step in the testing scenario and it still wouldn't be possible to test webrtc in a |
Support camera and microphe is one thing, crash is another, on us.luivuitton.com all JS are broken because of this. |
playwright/src/server/webkit/wkPage.ts Lines 1018 to 1029 in d7c6720
@yury-s I can see that there is map of permissions supported by Webkit . Would it be possible to get camera and microphone permissions working on Mac simply by adding those permissions to that map or is there more to it than that? |
Why was this issue closed?We are prioritizing the bugs based on the upvotes, recency and our ability to act. It looks like this issue only has a handful of upvotes, has not been touched recently and/or we lack sufficient feedback to act on it. We are closing issues like this one to keep our bug database maintainable. Please feel free to open a new issue and link this one to it if you think this is a mistake. |
@pavelfeldman I saw you closed this issue but we have not found a work-around. We have a app that requires these permissions and we'd like to test it with Playwright. Currently, we are using Protractor with Safari on Mac with BrowserStack and there are no issues there. Can you consider re-opening this and addressing it? |
Hi, are there any news on this issue? |
Context:
Code Snippet
Describe the bug
The browser is appearing and asking to allow 'website' to use your camera and microphone, after running it in headless mode.
Here is the screenshot in headless mode
NOTE:
In headed mode, the browser doesn't ask you for these permissions and a fake video stream works by default without providing any arguments or granting permissions.
Here is the screenshot in headed mode
Slack conversation.
The text was updated successfully, but these errors were encountered: