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:
Reuben Morais 2013-08-15 17:13:15 -03:00
Родитель ddeabcc92d
Коммит f71380298c
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -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;
} }