Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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.