-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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]: getUserMedia is always fulfilled on MacOS even if the microphone access is disabled #29861
Comments
Hello @ckerr, I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron14-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(15.1.0) and macOS(Big Sur 11.6). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron15-mac-getUserMedia
cd Electron-samples
npm i |
Hello @ckerr, I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron16-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(17.0.0) and macOS(Monterey 12.0.1). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron17-mac-getUserMedia
cd Electron-samples
npm i |
Hello @ckerr, I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron19-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(20.1.3) and macOS(Monterey 12.5.1). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron20-mac-getUserMedia
cd Electron-samples
npm i |
Hello @ckerr, I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron21-mac-getUserMedia
cd Electron-samples
npm i |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Hello @ckerr, I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron22-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(23.0.0) and macOS(Ventura 13.2). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron23-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(24.1.2) and macOS(Ventura 13.2.1). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron24-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(25.1.0) and macOS(Ventura 13.4). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron25-mac-getUserMedia
cd Electron-samples
npm i |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Bump |
This issue is still reproducible with both latest electron(26.2.1) and macOS(Ventura 13.5.1). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron26-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(27.0.4) and macOS(Sonoma 14.1.1). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron27-mac-getUserMedia
cd Electron-samples
npm i |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue is still reproducible with both latest electron(28.2.2) and macOS(Sonoma 14.2). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron28-mac-getUserMedia
cd Electron-samples
npm i |
This issue is still reproducible with both latest electron(29.3.0) and macOS(Sonoma 14.3.1). Has there been any progress? I have prepared an example to reproduce the issue: git clone https://github.com/Draginfable/Electron-samples.git -b electron29-mac-getUserMedia
cd Electron-samples
npm i |
Preflight Checklist
Electron Version
13.1.4
What operating system are you using?
macOS
Operating System Version
macOS Big Sur 11.3.1
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When microphone access is disabled, the navigator.mediaDevices.getUserMedia({audio: true}) promise should be rejected. (This is the behaviour of Chrome)
Actual Behavior
Even when microphone access is disabled, the navigator.mediaDevices.getUserMedia({audio: true}) promise is always fulfilled.
Testcase Gist URL
https://github.com/Draginfable/Electron-samples/tree/electron13-mac-getUserMedia
Additional Information
To reproduce
The microphone access has to be denied, either from inside an electron app or by revoking the access from System Preferences
I have prepared a small example that asks for microphone permission and calls getUserMedia. The result of getUserMedia is printed on the dev tools console. I hope it helps.
git clone https://github.com/Draginfable/Electron-samples.git -b electron13-mac-getUserMedia cd Electron-samples npm i
The text was updated successfully, but these errors were encountered: