Search Support

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.

Learn More

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

  • 2 replies
  • 1 has this problem
  • 4 views
  • Last reply by 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.

All Replies (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.