Closed Bug 1420206 Opened 8 years ago Closed 8 years ago

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

Categories

(WebExtensions :: General, defect)

57 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1315029

People

(Reporter: y.papouski, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 Steps to reproduce: - I developed an extension, which opens a new page in a new browser's tab; - Inside that page I using getUserMedia try to get an access to a microphone, to a video cam and to start screen sharing. Actual results: - Video/audio stream is retrieved without a problem. - Screen sharing is not allowed. The code I used: navigator.mediaDevices.getUserMedia({ audio: false, video: { mediaSource: 'screen', width: {max: '1280'}, height: {max: '1024'}, frameRate: {max: '5'} } }).catch(e => console.log(e)); The result: MediaStreamError { name: "NotAllowedError", message: "The request is not allowed by the user agent or the platform in the current context.", constraint: "", stack: "" } Expected results: I assumed that screen sharing should have been allowed too.
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.