New issue
Advanced search Search tips

Issue 828266 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

--unsafely-treat-insecure-origin-as-secure not working with --headless

Reported by benbr...@gmail.com, Apr 3 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Steps to reproduce the problem:
1. Launch Chrome with --unsafely-treat-insecure-origin-as-secure, --user-data-dir and --headless (where "insecure" website will try to access your webcam via getUserMedia()).

What is the expected behavior?
Webcam should be accessible.

What went wrong?
Webcam not accessible. Warning log says "getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS."

Did this work before? N/A 

Chrome version: 65.0.3325.181  Channel: stable
OS Version: Ubuntu 17.10
Flash Version: 

I am using Selenium to launch Chrome.

It definitely works when I run it without --headless.

Additional flags I am using are --use-fake-device-for-media-stream and --use-fake-ui-for-media-stream.
 
Labels: Needs-Triage-M65

Comment 2 by l...@chromium.org, Apr 3 2018

Components: -Platform>DevTools Internals>Headless

Sign in to add a comment