зеркало из https://github.com/mozilla/gecko-dev.git
Bug 736113 - Can't get camera stream when camera app served from subdomain [r=vingtetun]
This commit is contained in:
Родитель
a1d19c1db5
Коммит
ed3de8e8fc
|
@ -62,7 +62,7 @@ CameraContent.prototype = {
|
|||
let perm = principal == secMan.getSystemPrincipal() ? Ci.nsIPermissionManager.ALLOW_ACTION : Services.perms.testExactPermission(principal.URI, "content-camera");
|
||||
|
||||
//only pages with perm set and chrome pages can use the camera in content
|
||||
this.hasPrivileges = perm == Ci.nsIPermissionManager.ALLOW_ACTION || from.schemeIs("chrome");
|
||||
this.hasPrivileges = perm == Ci.nsIPermissionManager.ALLOW_ACTION;
|
||||
|
||||
Services.obs.addObserver(this, "inner-window-destroyed", false);
|
||||
let util = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
|
||||
|
|
Загрузка…
Ссылка в новой задаче