搜索 | 用户支持

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

详细了解

I get NotAllowed error when trying to start screen sharing from a page created by an extension

  • 2 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 YPapouski

more options

Hello,

I have faced the following issue: I have an extension, which opens a new page in a separate tab and then within this page I use getUserMedia to get an access to a microphone, to a video camera and to a screen sharing. Firefox asks permissions for audio and video and after they have been granted it gave me an access to audio/video stream, but then I tried to start screen sharing I received NotAllowed error.

I could check my code from within other pages and it worked fine, but it didn't work inside an extension page.

Looks like a bug, doesn't it?

Thanks, I would be appreciated for any help.

Hello, I have faced the following issue: I have an extension, which opens a new page in a separate tab and then within this page I use getUserMedia to get an access to a microphone, to a video camera and to a screen sharing. Firefox asks permissions for audio and video and after they have been granted it gave me an access to audio/video stream, but then I tried to start screen sharing I received NotAllowed error. I could check my code from within other pages and it worked fine, but it didn't work inside an extension page. Looks like a bug, doesn't it? Thanks, I would be appreciated for any help.

所有回复 (2)

more options

I doubt if that is a bug, sounds like a security precaution thus that NotAllowed message. The abilities for extensions to do certain actions was greatly curtailed in Quantum Firefox 57.

more options

Hi, thanks for your quick response.

So, from what you have said it might be not allowed to do a screen sharing from a page created by an extension because of some security restrictions. But then it looks a bit contradictory to me, because it allows to get an access to a camera and to a mic, but for a screen sharing I am not even asked to allow screen sharing or not and I get immediately a non allowed error. From my point of view it's not consistent. The stream from a video cam and a stream for a screen sharing are in common the same, aren't they?

Thanks, Yuri.