mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1919160 - Stop reporting facingMode on mac laptops and desktops;r=jib
Differential Revision: https://phabricator.services.mozilla.com/D228218
This commit is contained in:
parent
c83e2b8135
commit
01b0d17aa1
@ -68,12 +68,6 @@ static Maybe<VideoFacingModeEnum> GetFacingMode(const nsString& aDeviceName) {
|
||||
return Some(VideoFacingModeEnum::User);
|
||||
}
|
||||
#endif // ANDROID
|
||||
#ifdef XP_MACOSX
|
||||
// Kludge to test user-facing cameras on OSX.
|
||||
if (aDeviceName.Find(u"Face"_ns) != -1) {
|
||||
return Some(VideoFacingModeEnum::User);
|
||||
}
|
||||
#endif
|
||||
#ifdef XP_WIN
|
||||
// The cameras' name of Surface book are "Microsoft Camera Front" and
|
||||
// "Microsoft Camera Rear" respectively.
|
||||
|
Loading…
Reference in New Issue
Block a user