Add a local url file for Firefox allowed domains: about: config

I am creating a screen sharing addon in Firefox and should use: media.getusermedia.screensharing. "
But since I work locally using the AddOn SDK, my url of the open html file is: resource: // jid1-q3wuqdulcvnnrq-at-jetpack / toolbar_button / data / index.html
Now, at this link, I get an error message:

 In about:config, please enable media.getusermedia.screensharing.enabled
and add this site domain name to media.getusermedia.screensharing.allowed_domains in about:config

It also requires an https connection. Although the same WebRTC works fine in the Chrome extension.
Can someone please specify how to add a local URL for allowed domains? or use getusermedia for local development.

+4
source share
1 answer

Search mxr for escaping: http://mxr.mozilla.org/mozilla-release/search?string=screensharing

which led to this whitelist: http://mxr.mozilla.org/mozilla-release/source/dom/media/MediaManager.cpp#151

So, I checked the domains already in this pref, they were: webex.com,*.webex.com,collaborate.com,*.collaborate.com

so when i did this: Services.io.newURI('http://www.webex.com', null, null)i got the following:

So, it looks like everything that is in hostis what we want in this pref. So I tried the newURI uri file:

Services.io.newURI('file:///C:/Users/Vayeate/Documents/GitHub/Profilist/bullet_aurora.png',null,null)

he resets this:

so I think in pref add this: ,,

, uris : webex.com,*.webex.com,collaborate.com,,*.collaborate.com

asterik :

webex.com,*.webex.com,collaborate.com,*.collaborate.com,*

+1

All Articles