Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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

  • 2 respostas
  • 1 tem este problema
  • 2 visualizações
  • Última resposta por 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.

Todas as respostas (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.