commit | 9e2afdc32b5d70e736c04b23caa2f2eaec84388c | [log] [tgz] |
---|---|---|
author | Henrik Grunell <grunell@chromium.org> | Fri Feb 01 13:11:05 2019 |
committer | Henrik Grunell <grunell@chromium.org> | Fri Feb 01 13:11:05 2019 |
tree | 3e61d6e509b2e4733f5cf371a6ca03a50c1f2b3f | |
parent | deac1e52df3205576ea1d28506d209c5fde9979e [diff] |
Make getUserMedia fail if system mic permission is denied on macOS. * Fail with NotAllowedError. * Introduce new internal error, system permission denied, to be able to have a custom error message in the error. * Invoke the call to check system authorization status using performSelector to avoid availability compile errors due to only available on iOS with the SDK we currently use (10.12). * Explicitly request system authorization. This is needed so that the system gives the correct information when checking the authorization state later. Otherwise it incorrectly keeps returning "not determined" until browser restart. Bug: 925334 Change-Id: Ieecd2e592b74003ecbd29a6fdc4529f2bc88eab8 Reviewed-on: https://chromium-review.googlesource.com/c/1426707 Commit-Queue: Henrik Grunell <grunell@chromium.org> Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by: Tommi <tommi@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: Guido Urdaneta <guidou@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#627620}(cherry picked from commit 5c79e193f133dce2fbfadf473a1d9fecfe323f70) Reviewed-on: https://chromium-review.googlesource.com/c/1449661 Reviewed-by: Henrik Grunell <grunell@chromium.org> Cr-Commit-Position: refs/branch-heads/3683@{#117} Cr-Branched-From: e51029943e0a38dd794b73caaf6373d5496ae783-refs/heads/master@{#625896}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .