mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 865183 - Allow chrome callers to call navigator.getUserMediaDevices. r=bz,smaug
This commit is contained in:
parent
f91dcacccd
commit
9e7bcd0729
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user