FuckTheWorld / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Add media-stream-camera=1 and media-stream-mic=1 to pattern pairs in default Preferences file #1122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently chromedriver by default adds a pattern pair to allow access to 
camera/mic for all https sites:

   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      ...

This used to work in Chrome 42 (42.0.2311.152) but stopped working in Chrome 43 
(43.0.2357.65), i.e. the permission dialog was still enabled. I couldn't find 
any documentation for the Preferences file but adding in "media-stream-camera": 
1 and "media-stream-mic":1 along side "media-stream" fixed this issue for me, 
i.e.

               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               },
               "media-stream-camera": 1,
               "media-stream-mic": 1

I'm guessing the camera/mic permission logic has changed recently and the 
default config is out of date?

Found in chromedriver 16.

Original issue reported on code.google.com by rich...@pexip.com on 9 Jun 2015 at 10:50

GoogleCodeExporter commented 9 years ago
Yes. that's correct, Preferences have been changed in the latest version of 
Chrome browser.
However, this is not a bug but a change in the feature.
And by default, Chromedriver doesnt create/make any changes to the preferences, 
it directly uses the preferences generated by chrome.

Original comment by gmanikp...@chromium.org on 11 Jun 2015 at 12:36