зеркало из https://github.com/mozilla/gecko-dev.git
No bug - Silence camera permission warning that is printed every time a Navigator object is created. r=mikeh
--HG-- extra : rebase_source : fcff93d24aabb4562d883adcff6b0c808b88bc50
This commit is contained in:
Родитель
ddeabcc92d
Коммит
f71380298c
|
@ -80,7 +80,6 @@ nsDOMCameraManager::CheckPermission(nsPIDOMWindow* aWindow)
|
||||||
uint32_t permission = nsIPermissionManager::DENY_ACTION;
|
uint32_t permission = nsIPermissionManager::DENY_ACTION;
|
||||||
permMgr->TestPermissionFromWindow(aWindow, "camera", &permission);
|
permMgr->TestPermissionFromWindow(aWindow, "camera", &permission);
|
||||||
if (permission != nsIPermissionManager::ALLOW_ACTION) {
|
if (permission != nsIPermissionManager::ALLOW_ACTION) {
|
||||||
NS_WARNING("No permission to access camera");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче