bug 865183 - Allow chrome callers to call navigator.getUserMediaDevices. r=bz,smaug

This commit is contained in:
Ted Mielczarek 2013-04-25 15:16:09 -04:00
parent f91dcacccd
commit 9e7bcd0729

View File

@ -1113,7 +1113,7 @@ Navigator::MozGetUserMediaDevices(nsIGetUserMediaDevicesSuccessCallback* aOnSucc
}
// Check if the caller is chrome privileged, bail if not
if (!nsContentUtils::IsChromeDoc(win->GetExtantDoc())) {
if (!nsContentUtils::IsCallerChrome()) {
return NS_ERROR_FAILURE;
}