Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

navigator.mediaDevices.enumerateDevices() returns too much info #14889

Closed
diracdeltas opened this issue Aug 1, 2018 · 1 comment · Fixed by #14970
Closed

navigator.mediaDevices.enumerateDevices() returns too much info #14889

diracdeltas opened this issue Aug 1, 2018 · 1 comment · Fixed by #14970

Comments

@diracdeltas
Copy link
Member

diracdeltas commented Aug 1, 2018

Test plan

See #14970

Original issue description

STR:

  1. cd test/fixtures and start a local server, ex: on port 8000
  2. go to localhost:PORT/enumerate_devices.html

Actual result: shows a description of every media device

Expected result: behaves the same as in Chrome (no device descriptions are shown, only an opaque ID).

Tested on MacOS, both master and current release (0.23.x).

@diracdeltas diracdeltas added fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. security labels Aug 1, 2018
diracdeltas added a commit to brave/muon that referenced this issue Aug 1, 2018
this basically reverts
electron/electron@fce641a.
the issue points out that this is needed for Electron apps to enumerate
device labels. however, this is not supposed to be allowed unless permission is
granted.

potential fix for brave/browser-laptop#14889
@diracdeltas diracdeltas self-assigned this Aug 7, 2018
diracdeltas added a commit that referenced this issue Aug 8, 2018
fix #14889

Test plan:
1. go to https://www.webrtc-experiment.com/DetectRTC/
2. confirm that (1) the results are the same as what chrome shows on
   that site and (2) you see a permission prompt for media access
3. click 'remember this decision' and 'allow' on the permission prompt
   and reload the page.
4. confirm that in the "System has Speakers?" and "System has Microphone?" section, it now shows descriptions of all your devices.
diracdeltas added a commit that referenced this issue Aug 8, 2018
fix #14889

Test plan:
1. go to https://www.webrtc-experiment.com/DetectRTC/
2. confirm that (1) the results are the same as what chrome shows on
   that site and (2) you see a permission prompt for media access
3. click 'remember this decision' and 'allow' on the permission prompt
   and reload the page.
4. confirm that in the "System has Speakers?" and "System has Microphone?" section, it now shows descriptions of all your devices.
@GeetaSarvadnya
Copy link
Collaborator

GeetaSarvadnya commented Aug 9, 2018

Verified on Windows x64 with
• 0.23.79 51b4905
• Muon 8.0.7
• libchromiumcontent 68.0.3440.84

Verified with macOS 10.12.6 using

  • 0.23.79 51b4905
  • Muon 8.0.7
  • libchromiumcontent 68.0.3440.84

Verified with Ubuntu x64 using

  • 0.23.79 51b4905
  • Muon 8.0.7
  • libchromiumcontent 68.0.3440.84

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants