Closed Bug 1296954 Opened 8 years ago Closed 8 years ago

getUserMedia in WebExtension background page doesn't work (permissions required)

Categories

(WebExtensions :: Untriaged, defect)

48 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1278100

People

(Reporter: renaudmr, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Steps to reproduce: call navigator.mediaDevices.getUserMedia() from a background page in a WebExtension Actual results: navigator.mediaDevices.getUserMedia() promise never resolves with no permissions dialog. Expected results: I would expect a permission dialog to allow these permissions. Alternatively, Chrome handles this by using the options page to get the permissions dialog. Then you can "always allow" these permissions and access them in a background page. An example Chrome extension that uses this flow is: https://chrome.google.com/webstore/detail/mediacore-capture/enddmcjcfojolegmdogekfpfbobmkioo?hl=en
Component: Untriaged → WebExtensions
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.

Attachment

General

Creator:
Created:
Updated:
Size: