Skip to content
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

Closed
3 tasks done
Draginfable opened this issue Jun 23, 2021 · 19 comments · Fixed by #42899
Closed
3 tasks done
Assignees
Labels
31-x-y 32-x-y bug 🪲 platform/macOS status/confirmed A maintainer reproduced the bug or agreed with the feature web-platform-apis

Comments

@Draginfable
Copy link

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
@Draginfable
Copy link
Author

Hello @ckerr,
This issue is still reproducible with both latest electron(14.0.0) and macOS(Big Sur 11.5). Has there been any progress?

I have prepared an example to reproduce the issue:
https://github.com/Draginfable/Electron-samples/tree/electron14-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron14-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron15-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron15-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

Hello @ckerr,
This issue is still reproducible with both latest electron(16.0.2) and macOS(Monterey 12.0.1). Has there been any progress?

I have prepared an example to reproduce the issue:
https://github.com/Draginfable/Electron-samples/tree/electron16-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron16-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron17-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron17-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

Hello @ckerr,
This issue is still reproducible with both latest electron(19.0.6) and macOS(Monterey 12.4). Has there been any progress?

I have prepared an example to reproduce the issue:
https://github.com/Draginfable/Electron-samples/tree/electron19-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron19-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron20-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron20-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

Hello @ckerr,
This issue is still reproducible with both latest electron(21.0.0) and macOS(Monterey 12.6). Has there been any progress?

I have prepared an example to reproduce the issue:
https://github.com/Draginfable/Electron-samples/tree/electron21-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron21-mac-getUserMedia
cd Electron-samples
npm i

@github-actions
Copy link
Contributor

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!

@github-actions github-actions bot added the stale label Jan 11, 2023
@Draginfable
Copy link
Author

Hello @ckerr,
This issue is still reproducible with both latest electron(22.0.3) and macOS(Ventura 13.1). Has there been any progress?

I have prepared an example to reproduce the issue:
https://github.com/Draginfable/Electron-samples/tree/electron22-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron22-mac-getUserMedia
cd Electron-samples
npm i

@github-actions github-actions bot removed the stale label Jan 24, 2023
@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron23-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron23-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron24-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron24-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron25-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron25-mac-getUserMedia
cd Electron-samples
npm i

@electron-issue-triage
Copy link

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!

@Draginfable
Copy link
Author

Bump

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron26-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron26-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

Draginfable commented Nov 15, 2023

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:
https://github.com/Draginfable/Electron-samples/tree/electron27-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron27-mac-getUserMedia
cd Electron-samples
npm i

@electron-issue-triage
Copy link

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!

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron28-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron28-mac-getUserMedia
cd Electron-samples
npm i

@Draginfable
Copy link
Author

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:
https://github.com/Draginfable/Electron-samples/tree/electron29-mac-getUserMedia

git clone https://github.com/Draginfable/Electron-samples.git -b electron29-mac-getUserMedia
cd Electron-samples
npm i

@codebytere codebytere self-assigned this Jul 14, 2024
@codebytere codebytere added web-platform-apis 31-x-y 32-x-y status/confirmed A maintainer reproduced the bug or agreed with the feature and removed 13-x-y labels Jul 14, 2024
trop bot added a commit that referenced this issue Jul 17, 2024
Closes #42714
Closes #29861

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
trop bot added a commit that referenced this issue Jul 17, 2024
Closes #42714
Closes #29861

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
trop bot added a commit that referenced this issue Jul 17, 2024
Closes #42714
Closes #29861

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
codebytere added a commit that referenced this issue Jul 17, 2024
fix: getUserMedia needs macOS system permissions check

Closes #42714
Closes #29861

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
codebytere added a commit that referenced this issue Jul 17, 2024
fix: getUserMedia needs macOS system permissions check

Closes #42714
Closes #29861

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
codebytere added a commit that referenced this issue Jul 17, 2024
fix: getUserMedia needs macOS system permissions check

Closes #42714
Closes #29861

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
31-x-y 32-x-y bug 🪲 platform/macOS status/confirmed A maintainer reproduced the bug or agreed with the feature web-platform-apis
Projects
Status: 🛠️ Fixed for Next Release
Status: 🛠️ Fixed for Next Release
Development

Successfully merging a pull request may close this issue.

3 participants