为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox don't ask microphone and camera permission when in iFrame

  • 7 个回答
  • 3 人有此问题
  • 1 次查看
  • 最后回复者为 igulina

more options

Hello,

When a page inside <iframe> request permission of using microphone or camera, the firefox don't ask permission (the asking permission panel don't show up!), below is an example:

if you directly open https://meet.jit.si/test123 in firefox, the Firefox will ask microphone and camera permission from the user but if you open https://test.spacex.ml/ which put https://meet.jit.si/test123 in an iframe then FIrefox don't ask any permission and refuse user to use microphone and camera!

Please help, thanks!

Hello, When a page inside <iframe> request permission of using microphone or camera, the firefox don't ask permission (the asking permission panel don't show up!), below is an example: if you directly open https://meet.jit.si/test123 in firefox, the Firefox will ask microphone and camera permission from the user but if you open https://test.spacex.ml/ which put https://meet.jit.si/test123 in an iframe then FIrefox don't ask any permission and refuse user to use microphone and camera! Please help, thanks!

被采纳的解决方案

This is true for cross-site iframes (i.e., not the identical origin). Several versions ago, the developers turned off the notification panel in that scenario because it was confusing regarding what site was getting permission. This is why Hangouts wouldn't work embedded in Gmail, for example.

I don't know whether there is a workaround (besides giving Firefox users a link to open the framed page in a new window or tab).

定位到答案原位置 👍 1

所有回复 (7)

more options

选择的解决方案

This is true for cross-site iframes (i.e., not the identical origin). Several versions ago, the developers turned off the notification panel in that scenario because it was confusing regarding what site was getting permission. This is why Hangouts wouldn't work embedded in Gmail, for example.

I don't know whether there is a workaround (besides giving Firefox users a link to open the framed page in a new window or tab).

more options

jscher2000 said

This is true for cross-site iframes (i.e., not the identical origin). Several versions ago, the developers turned off the notification panel in that scenario because it was confusing regarding what site was getting permission. This is why Hangouts wouldn't work embedded in Gmail, for example. I don't know whether there is a workaround (besides giving Firefox users a link to open the framed page in a new window or tab).

Thanks, I solved the problem.

more options

Do you want to share your solution?

more options

I setup my own short url service on my domain, then use it as the src in iframe to make parent domain and the domain in iframe is same

more options

Or you can create a simple PHP file that do the redirect

more options
  • Deleted*

由Avigdor于修改

more options

gamingtips said

I setup my own short url service on my domain, then use it as the src in iframe to make parent domain and the domain in iframe is same

Does this solution really work? I mean, even if you do that, in the end you are embedding a "meet.jit.si" iframe that has another domain, and it's precisely that iframe that needs the camera and microphone permissions.

How did you make it work? Can you explain your solution in more detail? Thanksss