We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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.